It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Jira Webhook configuration

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

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

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

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!

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.

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

Dario Atlassian Team Sep 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
Community showcase
Published in Jira

The add-in you’ve been waiting for: Jira Cloud for Excel 🙌

Introducing Jira Cloud for Excel Here at the product integrations team at Atlassian, we are thrilled to announce the new Jira Cloud for Excel add-in! This add-in lets you export Jira data directly ...

872 views 6 24
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you