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

Promoted Build NullPointer when not manual promotion

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: promoted-builds-plugin
    • Labels:
      None
    • Environment:
      Promoted Build 2.14
    • Similar Issues:

      Description

      After upgrading to Promoted Build Plugin 2.14 I am getting a null pointer exception for builds which perform an Automatic Promotion after the build completes.
      Reexecuting the promotion manually also fails.
      If the Promotion is configured for manual promotion, it promotes successfully when I click apply

      java.lang.NullPointerException
      	at hudson.plugins.promoted_builds.Promotion.getParameterValues(Promotion.java:142)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:206)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562)
      	at hudson.model.Run.execute(Run.java:1665)
      	at hudson.model.Run.run(Run.java:1612)
      	at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:170)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:246)
      

      initial guess would be the manualCondition is null?

      ManualCondition manualCondition=(ManualCondition) getProject().getPromotionCondition(ManualCondition.class.getName());
              for (ParameterValue pvalue:parametersAction.getParameters()){
                if (manualCondition.getParameterDefinition(pvalue.getName())!=null)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cvarjao Clecio Varjao
                Reporter:
                gcummings Geoff Cummings
              • Votes:
                18 Vote for this issue
                Watchers:
                24 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: