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.
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 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.
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.
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.
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 ...
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