• Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • jira-plugin
    • None

      I would like to be able to have the JIRA url, username and password configurable on a per-project basis. We have multiple projects and not all of them track in the same Jira.
      Basically, all the info which is in the global config I'd like to be able to override in individual projects.

          [JENKINS-16073] Support for multiple Jira instances

          This will currently throw a NullPointerException if multiple Jira sites are defined.

          java.lang.NullPointerException
          	at hudson.plugins.jira.pipeline.CommentStep$CommentStepExecution.run(CommentStep.java:86)
          	at hudson.plugins.jira.pipeline.CommentStep$CommentStepExecution.run(CommentStep.java:68)
          	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
          	at hudson.security.ACL.impersonate(ACL.java:221)
          	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
          	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          	at java.lang.Thread.run(Thread.java:745)
          

          Using the dsl in the Jenkinsfile

          jiraComment(issueKey: "KEY-01", body: "My comment")
          

          Michiel De Mey added a comment - This will currently throw a NullPointerException if multiple Jira sites are defined. java.lang.NullPointerException at hudson.plugins.jira.pipeline.CommentStep$CommentStepExecution.run(CommentStep.java:86) at hudson.plugins.jira.pipeline.CommentStep$CommentStepExecution.run(CommentStep.java:68) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52) at hudson.security.ACL.impersonate(ACL.java:221) at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang. Thread .run( Thread .java:745) Using the dsl in the Jenkinsfile jiraComment(issueKey: "KEY-01" , body: "My comment" )

            Unassigned Unassigned
            scooper4711 scooper4711
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: