提交 9999516a 编写于 作者: O Oliver Gondža

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

[JENKINS-33730] Fix ATH for Jenkins 2.0
......@@ -69,6 +69,16 @@ public class InstallUtil {
* @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()) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册