Jira Webhook configuration

Ajith Shandilya May 4, 2017

We are trying to trigger build in Jenkins using Jenkins Trigger plugin in Jenkins and Webhooks in Jira. I have cofigured it as Post function in one of the transistion and we have also made sure that firewall is open. When we try to run the test plugin in Jenkins is not getting triggered. In Jira devolopers doc it says if it fails for 3 times error will be logged in atlassian-jira-log  but we are not seeing anything in the logs. I wanted to know if anyone had the same issue or if something is wrong in the way I have configured. 

2017-05-04_9-44-31.jpg2017-05-04_9-40-36.jpg

1 answer

0 votes
josh
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2017

I think you may need to deselect the Issue Updated event.

You can also increase the log level to debug for webhooks using #5 on these instructions: https://confluence.atlassian.com/jirakb/how-to-collect-data-for-atlassian-support-for-troubleshooting-jira-webhooks-397083035.html

Ajith Shandilya May 17, 2017

Hi Josh it was network issue. We created a new Jenkins in same network and webhook worked fine. 

Ashish Sati September 17, 2017

Hi Ajith Shandilya

Could you please provide me any document or steps to trigger a build when JIRA status is changed.

I want to trigger a build in JENKINS when JIRA status has been changed from To Do to In-progress.

 

I tried it using steps mentioned in : https://github.com/jenkinsci/jira-trigger-plugin but my build is not getting triggered.

 

Thanks!

David Laredo December 13, 2017

Hi Ashish Sati!
I'm trying to do the exact same thing! If you got it figured out i would love if you could share it with me.

Thank you.

Kuruba Vikram March 5, 2019

We're also struggling with the same setup, did anyone figure out how to do this?

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 26, 2019

I know this is old but please notice that saying "it does not work" without providing any other detail on what is not working is not useful and it does not put the other users in the position to be able to help.

However:

  1. A video showing how to configure this is available on youtube: https://www.youtube.com/watch?v=IYx3x2oVvZc
  2. If this does not work, refer to the troubleshooting section of the Jira trigger plugin: https://github.com/jenkinsci/jira-trigger-plugin:

    Build is not triggered

    Firstly, 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 from JIRA.

    If you are not seeing anything in the log, your problem will either be in JIRA configuration or the network connectivity in between JIRA and Jenkins:

    • Make Webhook configuration more lenient for testing:
      • Remove JQL configuration in JIRA Webhook page if you configure one
      • Try to update an issue again and check if you are getting the logs now. If not, you might have network connectivity problem, proceed below.
    • If using JIRA Cloud:
      • Your Jenkins must be hosted with 80 or 443 port
    • If you own JIRA Server:
      • SSH to JIRA machine.
      • Try to cURL Jenkins URL and make sure that you can get a response back.
      • If you are getting a timeout, your firewall rule might be blocking JIRA Webhook events to be sent to Jenkins. You'll need to fix this for this plugin to work.

    If you are seeing "Received Webhook callback ..." but your build is not triggered, your configuration for this plugin in Jenkins might be too restrictive, please double check.

Suggest an answer

Log in or Sign up to answer