Jenkins- Jira Integration -Build Jobs Automatically

Hi Team,
I am trying to run Jenkins jobs from Jira Ticket or Story or Issue update or create the Jenkins jobs run automatically. I created a webhook listener and made sure the connection link and password and other security is cleared. But it is not working jobs are not executing automatically.
I see the Error logs:


022-08-07 12:49:29.101+0000 [id=53] WARNING c.a.j.c.j.l.JenkinsPipelineRunListener#onCompleted: Not a WorkflowRun, onCompleted won’t be propagated to listeners
2022-08-07 12:51:33.897+0000 [id=86] WARNING org.kohsuke.stapler.RequestImpl#injectSetters: java.lang.IllegalAccessException: Processing this request relies on deprecated behavior that will be disallowed in future releases of Java. See https://jenkins.io/redirect/stapler-reflective-access/ for more information. Details: class org.kohsuke.stapler.RequestImpl cannot access a member of class com.ceilfors.jenkins.plugins.jiratrigger.JiraTrigger with modifiers private
2022-08-07 12:51:33.898+0000 [id=86] WARNING org.kohsuke.stapler.RequestImpl#injectSetters: java.lang.IllegalAccessException: Processing this request relies on deprecated behavior that will be disallowed in future releases of Java. See https://jenkins.io/redirect/stapler-reflective-access/ for more information. Details: class org.kohsuke.stapler.RequestImpl cannot access a member of class com.ceilfors.jenkins.plugins.jiratrigger.JiraCommentTrigger with modifiers private
2022-08-07 12:51:58.401+0000 [id=107] WARNING c.a.j.c.j.l.JenkinsPipelineRunListener#onStarted: Not a WorkflowRun, automatic builds and deployments won’t work.
2022-08-07 12:51:58.802+0000 [id=107] WARNING c.a.j.c.j.l.JenkinsPipelineRunListener#onCompleted: Not a WorkflowRun, onCompleted won’t be propagated to listeners
2022-08-07 12:51:59.877+0000 [id=113] WARNING c.a.j.c.j.l.JenkinsPipelineRunListener#onStarted: Not a WorkflowRun, automatic builds and deployments won’t work.
2022-08-07 12:52:00.237+0000 [id=113] WARNING c.a.j.c.j.l.JenkinsPipelineRunListener#onCompleted: Not a WorkflowRun, onCompleted won’t be propagated to listeners

Hi there,

“it doesn’t work” is always hard to remote debug. Try to always include these 3 things.

  1. what did you try? (Code samples, command lines, screenshots, videos, etc)
  2. what did happen? (Error messages, description, outputs, stuff)
  3. what did you expect to happen?

Otherwise, it’s hard for us to get into your context and you’ll have to have someone who is exactly knowledgeable come along.

2 Likes

HI halkeye Is there any email can I reach you . I have well documented with screen pics and also Jenkins error logs
wrapper and also configure file. I unable to upload here since I am new user. I will try to attach pics.

**Let me know you need Jenkins err log file and jenkins xml config file and also Jenkin wrapper file
1# Installed Jenkins Version

2# Installed JDK version

openjdk version “11.0.16” 2022-07-19

OpenJDK Runtime Environment Temurin-11.0.16+8 (build 11.0.16+8)

OpenJDK 64-Bit Server VM Temurin-11.0.16+8 (build 11.0.16+8, mixed mode)

3# Using AWS instance EC2 Window 2016 pro (free tire ) I have Adminstrator user both Widows,Jenkins and Jira

4# Jira Cloud Admin access (Configured, )

5# Configured Webhook Listener.

6# I even contacted Jira support had a screen share meeting he mentioned this issue related to Jenkins and their plugins get support from them to resolve issue.

Present working, I am able to do Pipeline from Jenkins to Jira comment update is working **perfectly .

Only issue is Jobs Execution from Jira via Comment and Issue update is not working even Jira support gave a green signal saying that I have configured JIRA Listener and all the Authentication correctly.

image

image

image

image

image

image