Skip to content
Permalink
Browse files

Merge pull request #2196 from tfennelly/2.0-JENKINS-33730

[JENKINS-33730] Fix ATH for Jenkins 2.0
  • Loading branch information...
olivergondza committed Mar 30, 2016
2 parents 4d01c07 + b28da33 commit 9999516aa826dd34986204a508a6bda7124e889d
Showing with 10 additions and 0 deletions.
  1. +10 −0 core/src/main/java/jenkins/install/InstallUtil.java
@@ -69,6 +69,16 @@
* @return The type of "startup" currently under way in Jenkins.
*/
public static InstallState getInstallState() {
// Support a simple state override. Useful for testing.
String stateOverride = System.getenv("jenkins.install.state");
if (stateOverride != null) {
try {
return InstallState.valueOf(stateOverride.toUpperCase());
} catch (RuntimeException e) {
throw new IllegalStateException("Unknown install state override specified on the commandline: '" + stateOverride + "'.");
}
}

// install wizard will always run if environment specified
if (!Boolean.getBoolean("jenkins.install.runSetupWizard")) {
if (Functions.getIsUnitTest()) {

0 comments on commit 9999516

Please sign in to comment.
You can’t perform that action at this time.