Webhook trigger for Jenkins job from multiple BitBucket repositories Webhook trigger for Jenkins job from multiple BitBucket repositories jenkins jenkins

Webhook trigger for Jenkins job from multiple BitBucket repositories


I had same problem. I wanted to use web-hooks for my project, but it appeared that our infrastructure is so "secured" that web-hook's communication was blocked by security setup (Csrf issue). So I changed approach and create trigger job on repoX that can change.

project-build-trigger - freestyle job that points to repoX, with pool SCM (cron: 0/3 **** - check each 3 minutes), and build when pushed to BitBucket

project-deployment - full pipeline job that points to repoY with option "build after other projects are build" (under Build Triggers) and set there project-build-trigger (You cans set here other projects like: some library build job, some other jobs etc.)