Hi Team,
I need your input regarding the Bitbucket to Jenkins webhook setup for the data center environment.
Currently, the team is asking about how to enable webhooks. They have over 70 repositories under the "A" project, and they want to trigger CI jobs whenever a pull request is created against specific branches (e.g., develop, master, release, etc.) in each repository.
Is it possible to configure a single webhook that can trigger corresponding Jenkins jobs based on the repository and branch (e.g., branch A triggers Jenkins job A, branch B triggers job B), instead of creating individual webhooks for each branch-to-job mapping?
Im not sure if we can setup jobs in Jenkins to follow single webhook that will enable all the jobs(May be multi branch pipe line)
Thanks in advance..!
Hi @skala
Setting a webhook at the project level applies it to all repositories within that project. However, Bitbucket's default webhook feature is scoped at the repository level, not the branch level, therefore, you cannot limit a webhook to trigger only for changes on a specific branch, nor can you direct it to trigger a specific job in Jenkins.
Regards,
Aman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.