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

Jira plugin does not work inside promotion block

XMLWordPrintable

      Jira plugin does not work inside promotion block (outside of it works fine)

          FATAL: Unable to release jira version RELNOTE-5.0.0/RELNOTE: java.lang.NullPointerException
      java.lang.NullPointerException
          at hudson.plugins.jira.VersionReleaser.perform(VersionReleaser.java:33)
          at hudson.plugins.jira.JiraReleaseVersionUpdaterBuilder.perform(JiraReleaseVersionUpdaterBuilder.java:52)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:344)
          at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:286)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
          at hudson.model.Run.execute(Run.java:1741)
          at hudson.model.Run.run(Run.java:1679)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:231)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)enter code here
      

      In Jenkins log I see the following exception:

      RunListener failed
      java.lang.UnsupportedOperationException
          at hudson.plugins.promoted_builds.PromotionProcess.isFingerprintConfigured(PromotionProcess.java:430)
          at org.jenkinsci.plugins.buildenvironment.data.ProjectData.initializeDataMap(ProjectData.java:55)
          at org.jenkinsci.plugins.buildenvironment.data.ProjectData.<init>(ProjectData.java:28)
          at org.jenkinsci.plugins.buildenvironment.actions.BuildEnvironmentBuildAction.addDataHolders(BuildEnvironmentBuildAction.java:537)
          at org.jenkinsci.plugins.buildenvironment.actions.BuildEnvironmentBuildAction.<init>(BuildEnvironmentBuildAction.java:102)
          at org.jenkinsci.plugins.buildenvironment.data.EnvironmentDataWriter.onCompleted(EnvironmentDataWriter.java:24)
          at org.jenkinsci.plugins.buildenvironment.data.EnvironmentDataWriter.onCompleted(EnvironmentDataWriter.java:16)
          at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)
          at hudson.model.Run.execute(Run.java:1786)
          at hudson.model.Run.run(Run.java:1679)
          at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:231)
          at hudson.model.ResourceController.execute(ResourceController.java:98)
          at hudson.model.Executor.run(Executor.java:410)
      

      Jenkins version 1.635
      promotion plugin 2.27
      jira plugin is 2.0.3.

      Thanks in advance,
      Bella

            Unassigned Unassigned
            bella Bella N
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: