The last stage of my Jenkins Pipeline is not working :
stage('Integration with Jira') {
steps {
jiraComment(issueKey: "P34AMA-204", body: "test")
}
}
It ends with the folloing error
java.lang.NullPointerException
at hudson.plugins.jira.JiraSite.**createSession**(JiraSite.java:530)
at hudson.plugins.jira.JiraSite.getSession(JiraSite.java:506)
at hudson.plugins.jira.pipeline.CommentStep$CommentStepExecution.run(CommentStep.java:83)
at hudson.plugins.jira.pipeline.CommentStep$CommentStepExecution.run(CommentStep.java:64)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
at hudson.security.ACL.impersonate(ACL.java:367)
at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Finished: FAILURE
- Jenkins version is 2.263.3
- Jira (version 8.20.7) is configured the following way in Jenkins jiraConfiguration with the Jira plugin version 3.0.15
I don't have admin access to check the logs, such as suggested here : Jira plugin in Jenkins not working but No error (the Jenkins server belongs to the company I work for)
I believe this might be happening because I do not have permission to define Scoped credentials, under Credentials > System > Global Credentials
Either that or perhaps I might need to configure the Jira API Key in Jenkins youtube.com/watch?v=-KrlCWVPfJM (minute 3:30)
Would you have any hint on why this is happening?