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?
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");
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?......
It looks like you're new here. Sign in or register to get started.