I have configured a Jenkins hook for a Bitbucket repo, and the configuration appears to be correct — when I reconstruct the URL it should be hitting using the values in the configuration, it fires off a Jenkins build.
I.e., When I hit `<endpoint>/job/<project name>/build?token=<token>` in my browser, it correctly triggers a build.
Here are the troubleshooting steps I have taken to try to resolve this issue:
X 0. Configured Jenkins commit hook. Takeaways:
|
Atlassian support checked it out, and it turns out that Jenkins is sending back a 403. I tried it out in another browser, and sure enough, even though I'm sending a token value, Jenkins is still showing the login page.
The next step will be to get Jenkins to allow a ping to the build URL (with appropriate token value) without requiring login.
Hi Phoenix,
We have a page for that in the documentation:
https://confluence.atlassian.com/display/BITBUCKET/Troubleshoot+Bitbucket+hooks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks manthony. I tried the troubleshooting steps on that page but still was not able to get the hook to fire. I have updated my question with additional information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi manthony. Thanks for the information. I tried the troubleshooting steps on that page, but I was still unable to resolve the issue. I have updated my OP with my troubleshooting steps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Jira Align Program Essentials
Learn how to use Jira Align at the program level and how to plan for and manage your Program Increment (PI).
Managing Agile Boards and Reports
Learn how to pick the right board type for your team and customize it to fit your specific requirements.
Atlassian Certified Associate
Jira Software Board Configuration
Earn an associate-level credential from Atlassian that shows you can effectively configure Jira Software boards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.