Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assorted features & fixes under development, to be filed properly #827

Closed
wants to merge 10 commits into from
10 changes: 10 additions & 0 deletions src/main/java/org/jvnet/hudson/test/RealJenkinsRule.java
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,16 @@ public File getHome() {
return home.get();
}

/**
* Switch the Jenkins home directory.
* Will affect subsequent startups of this rule,
* but not other copies linked via {@link RealJenkinsRule#RealJenkinsRule(RealJenkinsRule)}.
* Normally unnecessary but could be used to simulate running on the wrong home.
*/
public void setHome(File newHome) {
home = new AtomicReference<>(newHome);
}

private static File findJenkinsWar() throws Exception {
// Adapted from WarExploder.explode

Expand Down