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

JIRA Trigger Plugin fails job on null value attributes

XMLWordPrintable

      The JIRA-trigger-plugin fails the build job if a requested attribute set to null.

      For example, in my Issue shape I have

      resolution: null

      Jenkins fails per below. I believe this should be caught and handled by the plugin rather than pass a null to the EnvInject plugin.

       

      JIRA comment is added
       [EnvInject] - Loading node environment variables.
       FATAL: Null value not allowed as an environment variable: resolution
       java.lang.IllegalArgumentException: Null value not allowed as an environment variable: resolution
       at hudson.EnvVars.put(EnvVars.java:356)
       at hudson.model.StringParameterValue.buildEnvironment(StringParameterValue.java:56)
       at org.jenkinsci.plugins.envinject.util.RunHelper.getBuildVariables(RunHelper.java:88)
       at org.jenkinsci.plugins.envinject.util.RunHelper.getBuildVariables(RunHelper.java:154)
       at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironmentWithoutJobPropertyObject(EnvInjectListener.java:236)
       at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:50)
       at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:528)
       at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:448)
       at hudson.model.Run.execute(Run.java:1735)
       at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
       at hudson.model.ResourceController.execute(ResourceController.java:97)
       at hudson.model.Executor.run(Executor.java:405)
       Finished: FAILURE

            ceilfors Wisen Tanasa
            mgreville Marcus Greville
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: