Forums

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

Jira cloud webhook is not working for local Jenkins server

CD QA June 17, 2023

Hello Team, 


I am unable to send a webhook to Jenkins server I am getting error as 403 Forbidden even after providing valid creds and details 


Can you please help me how I can successfully create web hook in Jira cloud which will trigger job in Jenkins local server ? 

 

403_error_updated.png

2 answers

1 vote
Derek Fields (RightStar)
Community Champion
June 19, 2023

A 403 Error usually indicates that the server doesn't support the specific request that you are sending. I don't know Jenkins, so I can't be help with the specifics. Can you check that "POST" is the correct method and that it isn't expecting a GET or a PUT? 

Normally, if you have the wrong credentials, you will get a 401 error. If you have submitted an invalid URL, you will get a 404 error. 

0 votes
Graham Twine
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.
June 18, 2023

Hello @CD QA ,

 

Is the URL publicly available?

Be careful with URLs you paste here if they are sensitive.

I used the server and scheme and it times out.

 

The 403 forbidden may be a read herring, you may have whitelisted IPs / domains on the endpoint so my test is not good as I do not have enough information.  Heads up with pasting identifiable things in your questions. I would propose replacing the image you have above

Graham Twine
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.
June 19, 2023

@CD QAthanks for blocking out the details :)

CD QA June 20, 2023

Hi 

Thank you.

Regarding whitelisting IP addresses, I believe it can be helpful. However, I'm not entirely sure how we can whitelist IPs or domains in the local Jenkins server.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events