Forums

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

Executing jenkins job from Automation Rule

sanyamarora November 29, 2021

I've created a jenkins local host in my system. Once, I create automation rule from JIRA with giving Jenkins webhook, then it is throwing 403 Forbidden while validating the request and giving response as ACCESS_DENIED.

Can anyone help on this?

2 answers

1 vote
Aron Gombas _Midori_
Community Champion
November 29, 2021

When you fire the same request from CURL, what happens?

If that also throws a 403, then you must review the authentication config in the Jenkins side. If that works, then you must review how the request is formed in the AFJ side.

Sanyam Arora November 29, 2021

I'm able to execute the curl request from local/POSTMAN.

Sanyam Arora November 29, 2021

What is AFJ?

Aron Gombas _Midori_
Community Champion
November 29, 2021

Automation for Jira. The app that executes your automation rules. 

Sanyam Arora November 29, 2021

I've given the similar parameters the one I am providing through POSTMAN request, then should not this gets validated successfully. Can you please help on this?

0 votes
Prince Nyeche
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.
November 29, 2021

Hi,

Are you certain that there's even a connection with Jenkins at all? I doubt if automation can be able to send data via a local connection as it has to be via the internet, so a 403 response is expected.

Sanyam Arora November 29, 2021

Wouldn't that work if we pass system's ipaddress rather than localhost

Prince Nyeche
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.
November 29, 2021

It shouldn't work if it's not accessible over the internet. Remember postman has the ability to interface with your local network, automation for Jira won't do that. What you should do is use a proxy for your Jenkins and put it online then you can send a request to it via automation for Jira.

Like Sanyam Arora likes this
Sanyam Arora November 29, 2021

Okay thanks for the suggestion, will try this at my end

Suggest an answer

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

Atlassian Community Events