-
Bug
-
Resolution: Fixed
-
Minor
-
None
When trying to configure the promotion process based on a build parameter, the promotion fails as it tries to get the last failed instance for a job that never failed.
As a result the promotion also fails with null pointer exception.
Caused by: java.lang.NullPointerException
at hudson.plugins.promoted_builds.Status.getLastFailed(Status.java:252)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:201)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:684)