[JIRA] (JENKINS-41315) Jira Trigger not triggering jenkins build jobs

20 views
Skip to first unread message

jan.k.r.calma@accenture.com (JIRA)

unread,
Jan 23, 2017, 5:24:02 AM1/23/17
to jenkinsc...@googlegroups.com
jan kryztoff calma created an issue
 
Jenkins / Bug JENKINS-41315
Jira Trigger not triggering jenkins build jobs
Issue Type: Bug Bug
Assignee: jan kryztoff calma
Attachments: empty log.JPG
Components: jira-trigger-plugin
Created: 2017/Jan/23 10:23 AM
Labels: plugin
Priority: Blocker Blocker
Reporter: jan kryztoff calma

Hello,

May I ask for your help in using the jira-trigger-plugin? We would like to use it to trigger jobs once there's an update in JIRA. I'm currently unable to make it work, I think because of the webhook not able to connect or send a post to our jenkins url. Did the below steps but still not getting any logs.

Add new JIRA webhook (One time)

Go to JIRA > Cog > System > Advanced > WebHooks (Requires admin permission)
Create a new Webhook
Set URL to: $

{Jenkins URL}

/jira-trigger-webhook-receiver/ e.g. http://localhost:8080/jenkins/jira-trigger-webhook-receiver/
Set Events to: issue updated
Do not check Exclude body as this plugin requires the JSON to operate
Save!
To troubleshoot:

Enable Jenkins logging at FINE level for troubleshooting: com.ceilfors.jenkins.plugins.jiratrigger.webhook
You should see "Received Webhook callback ..." log messages when Jenkins is receiving webhook events

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jan.k.r.calma@accenture.com (JIRA)

unread,
Jan 23, 2017, 5:46:01 AM1/23/17
to jenkinsc...@googlegroups.com

jan.k.r.calma@accenture.com (JIRA)

unread,
Jan 23, 2017, 5:47:01 AM1/23/17
to jenkinsc...@googlegroups.com
jan kryztoff calma updated an issue
Change By: jan kryztoff calma
Attachment: error when post.png

wisen@ceilfors.com (JIRA)

unread,
Feb 9, 2017, 1:54:02 AM2/9/17
to jenkinsc...@googlegroups.com
Wisen Tanasa updated an issue
Change By: Wisen Tanasa
Attachment: authentication required.png

wisen@ceilfors.com (JIRA)

unread,
Feb 9, 2017, 1:58:01 AM2/9/17
to jenkinsc...@googlegroups.com
Wisen Tanasa commented on Bug JENKINS-41315
 
Re: Jira Trigger not triggering jenkins build jobs

Apologies for the late response as I'm not getting any notification as this issue is not assigned to me.

It seems like you have a reverse proxy (nginx) that requires an authentication. This might block JIRA webhook to Jenkins and it is not something that the plugin can handle, you might want to check JIRA webhook documentation.

wisen@ceilfors.com (JIRA)

unread,
Feb 9, 2017, 1:58:02 AM2/9/17
to jenkinsc...@googlegroups.com
Wisen Tanasa closed an issue as Not A Defect
 
Change By: Wisen Tanasa
Status: Open Closed
Assignee: jan kryztoff calma Wisen Tanasa
Resolution: Not A Defect

sanoopraj.ps@in.verizon.com (JIRA)

unread,
Aug 5, 2019, 4:10:07 AM8/5/19
to jenkinsc...@googlegroups.com
sanoop raj p s updated an issue
Change By: sanoop raj p s
Attachment: test.pcap
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

sanoopraj.ps@in.verizon.com (JIRA)

unread,
Aug 5, 2019, 4:10:19 AM8/5/19
to jenkinsc...@googlegroups.com
sanoop raj p s commented on Bug JENKINS-41315
 
Re: Jira Trigger not triggering jenkins build jobs

Have you got it working?
I am also not able to get this plugin working. Jenkins is sending 302 redirection error for Jira POST request!
Any help? test.pcap

Attached pcap

sanoopraj.ps@in.verizon.com (JIRA)

unread,
Aug 5, 2019, 5:17:01 AM8/5/19
to jenkinsc...@googlegroups.com

I got it working. Forward slash was missing in the Webhook URL

mrsharmabalram@gmail.com (JIRA)

unread,
Aug 9, 2019, 6:44:03 AM8/9/19
to jenkinsc...@googlegroups.com

Hi sanoop raj p s

I am also facing same issue. Could you please let us know

1) URL where you were able to repro this issue and

2) URL, How did you fix it?

 

sanoopraj.ps@in.verizon.com (JIRA)

unread,
Aug 9, 2019, 6:55:04 AM8/9/19
to jenkinsc...@googlegroups.com

Can you be more specific on what issue you are facing? I can share some of the debugging steps that I have used!

  • Make sure Jenkins is running on port 80 or 443
  • As a first step, I would say take a packet capture on Jenkins (Port 80 or 443) and look for http/https traffic
  • Please share the Jenkins response to the request. If you are getting 302 return code, there is some issue with the URL.
    In my case, Webhook URL configured in Jira had the problem. I got to give a '/' (forward slash) at the end of URL to get it working!
Reply all
Reply to author
Forward
0 new messages