Promoted Build NullPointer when not manual promotion

XMLWordPrintable

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

      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
            Votes:
            18 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: