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

Promoted Build NullPointer when not manual promotion

    XMLWordPrintable

    Details

    • 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

            Hide
            bedge Bruce Edge added a comment -

            This was fixed over a month ago (Oct 27). What does it take to get a release?

            Show
            bedge Bruce Edge added a comment - This was fixed over a month ago (Oct 27). What does it take to get a release?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: cvarjao
            Path:
            src/main/java/hudson/plugins/promoted_builds/Promotion.java
            http://jenkins-ci.org/commit/promoted-builds-plugin/cb976b9f0dfc28a2992eb42967c8cb3cd41057ac
            Log:
            [FIXED JENKINS-20166] Promoted Build NullPointer when not manual promotion

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: cvarjao Path: src/main/java/hudson/plugins/promoted_builds/Promotion.java http://jenkins-ci.org/commit/promoted-builds-plugin/cb976b9f0dfc28a2992eb42967c8cb3cd41057ac Log: [FIXED JENKINS-20166] Promoted Build NullPointer when not manual promotion
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De loof
            Path:
            src/main/java/hudson/plugins/promoted_builds/Promotion.java
            http://jenkins-ci.org/commit/promoted-builds-plugin/ca1bfbe304209b5191a6c0cd7afdc8190545ef52
            Log:
            Merge pull request #33 from cvarjao/JENKINS-20166

            [FIXED JENKINS-20166] Promoted Build NullPointer when not manual promoti...

            Compare: https://github.com/jenkinsci/promoted-builds-plugin/compare/262703f3ef46...ca1bfbe30420

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De loof Path: src/main/java/hudson/plugins/promoted_builds/Promotion.java http://jenkins-ci.org/commit/promoted-builds-plugin/ca1bfbe304209b5191a6c0cd7afdc8190545ef52 Log: Merge pull request #33 from cvarjao/ JENKINS-20166 [FIXED JENKINS-20166] Promoted Build NullPointer when not manual promoti... Compare: https://github.com/jenkinsci/promoted-builds-plugin/compare/262703f3ef46...ca1bfbe30420
            Hide
            bedge Bruce Edge added a comment -

            2.14 is still the latest version available from the jenkins plugin manager.
            How does one get this fix?

            Show
            bedge Bruce Edge added a comment - 2.14 is still the latest version available from the jenkins plugin manager. How does one get this fix?
            Hide
            friederbluemle Frieder Bluemle added a comment -

            Can someone please release 2.15? I am getting the NullPointerException as well..

            Show
            friederbluemle Frieder Bluemle added a comment - Can someone please release 2.15? I am getting the NullPointerException as well..

              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: