Some Jira webhook is not being sent when integrate with Jenkins

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When you are usinghttps://github.com/jenkinsci/jira-trigger-pluginfor integration between Jira and Jenkins but only certain webhooks being sent out and not all.

Environment

  • JIRA DC 8.13.6

Diagnosis

  • Enable debug com.atlassian.webhooks and org.apache.http via Logging & Profilling.

  • Retrigger the Jira webhook.

  • In the atlassian-jira.log, look for the "Response received HTTP/1.1 302 Found" logs:

    1 2 3 4 5 6 7 8 9 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.wire] http-outgoing-15306 << "Server: Jetty(9.4.43.v20210629)[\r][\n]" 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.wire] http-outgoing-15306 << "[\r][\n]" 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.headers] http-outgoing-15306 << HTTP/1.1 302 Found 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.headers] http-outgoing-15306 << Date: Tue, 22 Feb 2022 15:50:23 GMT 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.headers] http-outgoing-15306 << X-Content-Type-Options: nosniff 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.headers] http-outgoing-15306 << Location: http://server:8080/bitbucket-hook  2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.headers] http-outgoing-15306 << Content-Length: 0 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.apache.http.headers] http-outgoing-15306 << Server: Jetty(9.4.43.v20210629) 2022-02-22 16:50:23,572+0100 I/O dispatcher 8 DEBUG anonymous [o.a.h.i.nio.client.MainClientExec] [exchange: 15558] Response received HTTP/1.1 302 Found

Cause

Jenkins returns 302 means the Rest Endpoint URL was redirected from http://server:8080/bitbucket-hook (without a slash) to http://server:8080/bitbucket-hook/ (with a slash at the end)

Solution

The solution would be adding the slash at the end of the Rest Endpoint URL → http://server:8080/bitbucket-hook/

Updated on March 18, 2025

Still need help?

The Atlassian Community is here for you.