Promoted Build NullPointer when not manual promotion

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

XMLWordPrintable

      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)

            Assignee:
            Clecio Varjao
            Reporter:
            Geoff Cummings
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: