jenkinsci / build-timeout-plugin

Jenkins build-timeout plugin
https://plugins.jenkins.io/build-timeout/
31 stars 80 forks source link

Null Pointer Exception #15

Closed wedaly closed 10 years ago

wedaly commented 11 years ago

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:

image

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.

oleg-nenashev commented 11 years ago

I suppose you should create issue in Jenkins JIRA...

wedaly commented 11 years ago

https://issues.jenkins-ci.org/browse/JENKINS-19592

ikedam commented 10 years ago

Seems fixed in d64f1a242e42d938b454a0e05a97d22c544d62c3 .