jira-plugin icon indicating copy to clipboard operation
jira-plugin copied to clipboard

[JENKINS-16073] Support for multiple Jira instances

Open rantoniuk opened this issue 13 years ago • 1 comments

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.


Originally reported by scooper4711, imported from: Support for multiple Jira instances
  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2025-05-30

rantoniuk avatar Dec 07 '12 16:12 rantoniuk

michieldemey:

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")

rantoniuk avatar Dec 05 '16 10:12 rantoniuk