Forums

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

jira-trigger-webhook-receiver requires the POST method

Sara
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!
August 21, 2019

I am trying to integrate jira and jenkins, but webhook on jira doesn't work.

I follow this tutorial v=uhx3oDPOijo https://www.youtube.com/watch?v=uhx3oDPOijo

to configure jenkins' job and jira'swebhook.

The difference between the video and my case is that jira is on cloud and jenkins is on my local network.  Into configuration of webhook like url I set https://mysite/jira-trigger-webhook-receiver/ that it will translate by my firewall as https://myservername:jenkinsport/. when I update an issue in jira the jenkins job is not started.

Search the url into webhook https://mysite/jira-trigger-webhook-receiver/  this is what I see

Capture.PNGThe URL you are trying to access requires that requests be sent with the POST method (like submitting a form). The button below allows you to try again to access this URL using the POST method. URL you are accessing.

Can someone help me?

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 28, 2019

Hello @Sara ,

Welcome to the Atlassian Community.

As you can read in the Managing webhooks documentation page: 

Webhooks are user-defined HTTP POST callbacks. They provide a lightweight mechanism for letting remote applications receive push notifications from Jira, without requiring polling.

Therefore, I am afraid the issue here is something else like, e.g. the Webhook is not received, you are using a self-signed certificate for HTTPS, or anything else. In order to further troubleshoot this you may want to send POST requests (using Curl or Postman or any other software) from an external machine to https://mysite/jira-trigger-webhook-receiver and see what is received (check firewall and Jenkins logs).

 

However, I'd like to point that there is an "official" way to integrate Jira Software Cloud and Jenkins that is documented in the below page:

 

Can you kindly review above documentation page and let me know if it helps?

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer