NullPointerException when using GitPublisher in release post build actions

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

XMLWordPrintable

      Configure a job to use the Jenkins release plugin and use the Git publisher as release step after a successful release build. Tick the checkbox "Push only If Build Succeeds". Then a release build failes with the following NullPointerException:

      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.git.GitPublisher.perform(GitPublisher.java:203)
      at hudson.plugins.release.ReleaseWrapper.executeBuildSteps(ReleaseWrapper.java:423)
      at hudson.plugins.release.ReleaseWrapper.access$300(ReleaseWrapper.java:99)
      at hudson.plugins.release.ReleaseWrapper$4.tearDown(ReleaseWrapper.java:370)
      at hudson.model.Build$BuildExecution.doRun(Build.java:173)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)

      This is caused by the null derefenced buildResult of AbstractBuild.getResult().

            Assignee:
            Unassigned
            Reporter:
            Marcus Klein
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: