Jenkins Webhook in JIRA

sanyamarora December 2, 2021

When I'm calling the Jenkins job with build parameters as Epic Name in Automation Rule, I'm getting Forbidden 403 response code due to crumb issue. 

I'm giving webhook as : https://{jenkins-url}/job/{job-name}/buildWithParameters?HOST={{issue.key}}&token={apiToken}

In the headers, I'm passing Authorization: Base 64 of username:apiToken

Jenkins-Crumb: {value}

Can anyone help me on this?

1 answer

0 votes
David Jose Silva Ruiz January 13, 2022

jenkinscall.png

this is the way I made it work.... hope this helps.

 

Remember it's a POST request, so the params need to be defined as custom data

harini kiruba May 26, 2023

I have the same issue, but I'm trying to trigger automation using automation rule from JIRA to trigger in gitlabs and getting same 403 access forbidden error. Can anyone please help me.

 

Webhook URL - https://<gitlab URL>/api/v4/projects/<projected>/trigger/pipeline

HTTP method and webrequest same given in the above screenshot by @David Jose Silva Ruiz custom data value I gave as 

token=<project_accesstoken created in gitlabs settings>&ref=<branchname>&variables[TESTPLAN]={{issue.key}}

Suggest an answer

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

Atlassian Community Events