Reputation: 256
I am new into Jenkins and I've been struggling with the following issue: I want to configure automated builds for a bitbucket repository in Jenkins when source code is pushed in any repository branch. For this, I configured multibranch pipeline for a repository in Jenkins and also a webhook in bitbucket which should trigger the job. However, I've been struggling with connecting this webhook with my multibranch pipeline. In multibranch pipeline there is no setting for webhook, only to scan "Periodically if not otherwise run".
Triggering a specific branch build (or at least to scan entire multibranch repo and detecting branches which were pushed) by a webhook seems like a relatively common use case to me, so I suppose this should be somehow possible, can someone please enlighten me on what am I doing wrong?
Upvotes: 2
Views: 1516
Reputation: 11
Did you install the Bitbucket Plugin? If you have installed it you should see the option "Build when a change is pushed to BitBucket" under "Build triggers"
Upvotes: 1