Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to trigger Jenkins job when change in status using webhook, JQL filter is not catching ticket

Pankaj Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 22, 2024

1. iam using web hook to integrate Jenkins.

2. Unable to trigger build when there is change in status in jira,

3. in jenkins JQL filter is not catching the Ticket id 

1 answer

0 votes
Mark Rekveld - Marvelution
Community Champion
January 22, 2024

Hi @Pankaj Kumar 

Welcome to the community.

There are several possible issues when triggering a build using webhook.

  • The webhook event never gets delivered because Jira is not able to reach Jenkins
  • The webhook itself or the event listener is not configured correctly resulting in events not being delivered or ignored.
  • The JQL using to filter the webhook events is excluding the issue you want to be processed.

To troubleshoot the issue you can look into configuring a base webhook without any filtering. To see if the filter is the issue.

Also looking closely at access requests to your Jenkins instance to see if the webhook requests are coming in as expected.

An alternative is to use an app to provide the integration. The Jenkins Integration for Jira  app supports triggering builds in Jenkins from Jira using manual issue actions and workflow post functions with advanced issue field mapping and Jenkins job selection options. A disclaimer, I'm the developer of the app.

Cheers,
Mark

Suggest an answer

Log in or Sign up to answer