Promote build plugin fails to promote the job when trying to promote with build parameters

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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)

            Assignee:
            Oleg Nenashev
            Reporter:
            Raghav Vaidhyanathan
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: