I am trying to trigger a build of a Jenkins job through a JIRA webhook. But I am getting a 403 error, which mean it is missing the authentication token in the POST request. Is there any way to set headers in the webhook URL?
Hi,
Thank you for the reply. But how can I set that header in JIRA? Because it is only possible to set the URL in the webhook configurations.
I agree on Jira Cloud, we need a definitive answer from Jira.
as of 11-03-2020 this is STILL not possible! why?......
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lara,
Here is the needed headers
:
BASE64Encoder base=new BASE64Encoder();
String encoding = base.encode ("username:password".getBytes());
postRequest.setHeader("Authorization", "Basic " + encoding);
postRequest.setHeader("X-Atlassian-Token","nocheck");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.