-
Bug
-
Resolution: Fixed
-
Major
Using version 1.12 of the plugin on Jenkins version 1.530
When I choose "Abort the build if stuck," there are no strategies available to choose from:
https://f.cloud.github.com/assets/2948394/1143405/f6412a08-1d39-11e3-93ac-2c62dc149688.png
When I then try to run a build, I get a null pointer exception:
12:34:27 FATAL: null
12:34:27 java.lang.NullPointerException
12:34:27 at hudson.plugins.build_timeout.BuildTimeoutWrapper$1EnvironmentImpl.<init>(BuildTimeoutWrapper.java:106)
12:34:27 at hudson.plugins.build_timeout.BuildTimeoutWrapper.setUp(BuildTimeoutWrapper.java:120)
12:34:27 at hudson.model.Build$BuildExecution.doRun(Build.java:154)
12:34:27 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:567)
12:34:27 at hudson.model.Run.execute(Run.java:1603)
12:34:27 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
12:34:27 at hudson.model.ResourceController.execute(ResourceController.java:88)
12:34:27 at hudson.model.Executor.run(Executor.java:246)
This affects only new jobs created after upgrading; jobs configured with the previous version of the plugin continue to work as expected.
Downgrading to the previous version (1.11) and reconfiguring the job resolves the issue.
- is duplicated by
-
JENKINS-19646 Build timeout job configuration is missing parameters for setting time.
-
- Resolved
-
I managed to workaround this issue using following steps: check "Abort the build if it's stuck"; save the job; re-open configuration; choose one of the strategies that was no displayed before; save again.
Bisecting shown the cause is 47e927ce Define an extension point for built time-out strategy[1]. Can be reproduced by selenium test case (features/build_timeout_plugin.feature) [2].
[1] https://github.com/jenkinsci/build-timeout-plugin/commit/47e927ceded0c38ec9c6c71304ee4c7c89283ed5
[2] https://jenkins.ci.cloudbees.com/job/selenium-tests/198/console