Forums

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

Trying to trigger Jenkins jobs from JIRA Automation Rules

Ranasinha_ Pradosh
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!
June 14, 2023

I am trying to trigger Jenkins Build job when the status of a card is moved to Done.

I am able to secure the Jenkins crumbs with a GET operation, but when I try to use the response body in the subsequent POST request, keep on getting the error "No Valid crumb included in the Request"

I need help in using the {{webhookResponse.body}} captured in a Send Webrequest in a subsequent call.

 

1 answer

1 vote
Bill Sheboy
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 15, 2023

Hi @Ranasinha_ Pradosh -- Welcome to the Atlassian Community!

First thing, I am offering a suggestion based on generic automation rule ideas, not specially for what you are trying with Jenkins...

You note have a problem using the response message from one call in a subsequent one.  Have you tried writing the response message (or the portion of interest) to the rule's audit log to confirm it contains what you expect?  That may help isolate where the problem is.

Kind regards,
Bill

Ranasinha_ Pradosh
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!
June 16, 2023

Thanks Bill for the response, yes I am able to capture it in Audit Log by using {{webhookResponse.body}} but when I try to use it in Send Web Request it does not capture the value

Bill Sheboy
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 16, 2023

Would you please show an image of that action where you are trying that?  Does the audit log show any errors, or unexpected things?

Suggest an answer

Log in or Sign up to answer