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

NPE in BuildCauseRetriever when there is no CauseAction

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It's a follow-up to https://groups.google.com/forum/#!topic/jenkinsci-dev/keV6a_YtzD0

      > So we are trying to set up a Seedjob, we want the seed job to be set as the parent for the jobs it creates and the multijob plugin seemed to be the plugin to accomplish this task. However, in the process of setting this up we noticed that the EnvInject plugin (a dependency of multijob) crashes on the first seedjob run. I think this is because Jenkins doesn't set a build cause for that first run of the seedjob. After the first seed job fails we are able to manually trigger a job successfully because jenkins sets the build cause.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/service/BuildCauseRetriever.java
          src/test/java/org/jenkinsci/plugins/envinject/sevice/BuildCauseRetrieverTest.java
          http://jenkins-ci.org/commit/envinject-plugin/784f1d92af0c4f3a6f5c4c355f0c2e648e59171a
          Log:
          Merge pull request #83 from paul-schwendenman/null-build-cause

          [FIXED JENKINS-32693] - Fix BuildCauseRetriever when AbstractBuild has Null CauseAction

          Compare: https://github.com/jenkinsci/envinject-plugin/compare/61417c784c65...784f1d92af0c

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: src/main/java/org/jenkinsci/plugins/envinject/service/BuildCauseRetriever.java src/test/java/org/jenkinsci/plugins/envinject/sevice/BuildCauseRetrieverTest.java http://jenkins-ci.org/commit/envinject-plugin/784f1d92af0c4f3a6f5c4c355f0c2e648e59171a Log: Merge pull request #83 from paul-schwendenman/null-build-cause [FIXED JENKINS-32693] - Fix BuildCauseRetriever when AbstractBuild has Null CauseAction Compare: https://github.com/jenkinsci/envinject-plugin/compare/61417c784c65...784f1d92af0c

            People

            • Assignee:
              oleg_nenashev Oleg Nenashev
              Reporter:
              oleg_nenashev Oleg Nenashev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: