Hi all,
I'm trying to get my multibranch workflow job to trigger based on a change in bitbucket server (previously known as stash).
I've read most of the docs on the several plugins, but I can't seem to get the combination to work.
What I've done now is configure my project with:
Branch sources -> Bitbucket
Build Configuration -> Mode -> From Jenkinsfile
Bitbucket Server URL -> My custom URL
And I've setup the credentials.
That part seems to work fine, so if I manually trigger the build it runs fine and does the branch indexing.
On the bitbucket side, I've tried to use the following plugins:
1. Bitbucket Server Webhook to Jenkins
I tried this with specificing the jenkins url, but it reports back with:
I guess this comes from the fact it's a pipeline job that uses a branches sources instead of git in a 'normal' maven base project with git as source.
2. Post-Receive WebHooks
net.sf.json.JSONException: JSONObject["user"] not found.
So it seems the request body to the bitbucket hook is not what the server expects. I've found some github issues, but I can't seem to figure out how I can make this work.
I assume I'm not the only one trying this?
Any ideas?
Regards,
Jeroen