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.

          [JENKINS-19592] Null Pointer Exception: build-timeout-plugin

          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

          Oliver Gondža added a comment - 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

          Code changed in jenkins
          User: Nicolas De Loof
          Path:
          src/main/java/hudson/plugins/build_timeout/BuildTimeoutWrapper.java
          src/main/resources/hudson/plugins/build_timeout/BuildTimeoutWrapper/config.jelly
          http://jenkins-ci.org/commit/build-timeout-plugin/d64f1a242e42d938b454a0e05a97d22c544d62c3
          Log:
          [FIXED JENKINS-19592] missing strategies selection when a new job is created

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: src/main/java/hudson/plugins/build_timeout/BuildTimeoutWrapper.java src/main/resources/hudson/plugins/build_timeout/BuildTimeoutWrapper/config.jelly http://jenkins-ci.org/commit/build-timeout-plugin/d64f1a242e42d938b454a0e05a97d22c544d62c3 Log: [FIXED JENKINS-19592] missing strategies selection when a new job is created

            ndeloof Nicolas De Loof
            wedaly Will Daly
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: