Webhook creation no longer working with Bitbucket server v8.8
jackiedaytonaAZ opened this issue · 2 comments
Jenkins and plugins versions report
Windows
Windows Jenkins agent with Bitbucket server v8.8.2
What Operating System are you using (both controller, and any agents involved in the problem)?
Windows
Reproduction steps
Turn on the Manage hooks
option either at the global level or at the pipeline level.
Expected Results
Multibranch pipelines will automatically register webhooks in Bitbucket repositories
Actual Results
404 error:
java.io.FileNotFoundException: URL: /rest/webhook/1.0/projects/PROJECT/repos/REPO/configurations
Anything else?
It appears Atlassian may have changed the webhook endpoints starting with v8.8:
https://developer.atlassian.com/server/bitbucket/reference/api-changelog/
Based on my testing it appears that the /rest/webhook/1.0 endpoint may no longer exist?
Are you interested in contributing a fix?
No response
We've tested bitbucket 8.14 and bb branch source plugin 805.v7f97d29dc0f5
Webhook creation worked for organization folders and multibranch project.
bitbucket server configuration in jenkins set to v7 and later.
Using native webhook implementation
My bad, the error I was seeing was actually coming from the Bitbucker Server plugin.
I've been doing some additional testing with the branch source settings and was able to get it to register the webhook. The issue was that we had the global Manage Hooks option disabled and were trying to opt in a single multibranch pipeline project but the global setting seems to default to using the Plugin option (instead of the Native option).
Temporarily turning on the global option and switching it to Native and then disabling it seems to have fixed it. I can now register them at the pipeline level.