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

    Details

    • Similar Issues:

      Description

      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)

        Attachments

          Activity

          Show
          oleg_nenashev Oleg Nenashev added a comment - https://github.com/jenkinsci/promoted-builds-plugin/pull/89 should address it
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          The PR has been integrated into 2.26

          Show
          oleg_nenashev Oleg Nenashev added a comment - The PR has been integrated into 2.26

            People

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

              Dates

              • Created:
                Updated:
                Resolved: