Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-22632

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

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)

            oleg_nenashev Oleg Nenashev
            raghav4192 Raghav Vaidhyanathan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: