Forums

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

Jira webhook to Jenkins gives 403 error

Liz Craig March 7, 2025

Running Jira Data Center 9.4.1.  Created a webhook to Jenkins 2.361.3 and Jenkins has the Jira plugin 3.8 installed.  

The webhook url is http://Jenkins.xxx/jira-triggered-webhook-receiver/

with Issue created and updated marked.  Also marked Comment - created, updated, deleted.  

Jenkins global security configuration

Jira - Jira sites url http://jira.xxx/  using username and password with a successful connection test.

Created a freestyle test Jira-Trigger-job.  Under build triggers identify the JQL filter for a specific jira project (project = test), then use Comment pattern (please build)

When I add a comment in Jira to the test project and check the logs I see the following.

Error - 403 when posting to web hook at 'http://jenkins.xxx/

 

jira-triggered-webhook-receiver/

Tried updating the setenv.sh by adding  "http.nonProxyHosts" but did not help.  What am I missing.

1 answer

0 votes
Mark Rekveld - Marvelution
Atlassian Partner
March 7, 2025

From you error I would say that the webhook configured in Jira doesn't provide credentials that Jenkins is expecting. Or the credentials provided don't have the require permissions to execute the action in Jenkins.

As a first thought I would suggest looking at the credentials you are using in the integration.

If this is not working or if you want to use Automation for Jira, you may want to look at an app, disclaimer, the app is mine: Jenkins for Jira 

Liz Craig March 10, 2025

The credentials that I am using in the integration have access in Jira to create and edit in the test Project.  Those same credentials are in Jenkins and when validating the connection to Jira (via Jenkins configuration), get a Success result.  

I am also able to login to both applications with the credentials.

Mark Rekveld - Marvelution
Atlassian Partner
March 24, 2025

Sorry I missed your reply there for bit.

Its good to know your credentials allow you to log in, but do they also allow you to perform the action you want to perform using the webhook?

So you would be looking to trigger a build, does the account you use in the webhook have the permission to build the specific job.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
9.4.1
TAGS
AUG Leaders

Atlassian Community Events