I'm using the multi branch plugin in Jenkins. I'm using on-premise bitbucket and on-premise Jenkins who can talk to each other.
Now I can scan the repo and for every branch I get a Jenkins job (which uses a Jenkinsfile from the repository. It works okay the only thing is that the job or scanning is not triggered when I perform a new commit.
I've created a webhook in bitbucket using:
https://URL/jenkins/bitbucket-scmsource-hook/notify
But I receive a 400. (I'm able to use this type of hooks for normal Jenkins jobs/pipelines). What am I doing wrong?