Triggering a Jenkins Pipeline job from a Bitbucket repository

3.8k Views Asked by At

This is a direct continuation of this question, not asked by me, whose purpose was to hook up Bitbucket with Jenkins so that a repo change would trigger a Jenkins Pipeline job.

The issue here is the accepted answer, while likely correct, deals with a service of Bitbucket (called Services) that is getting removed in favor of their Webhooks service. I am trying to get one pipeline job to run two freestyle jobs in parallel (both unit tests) that need to be run on the one branch when a push is made.

How can a Pipeline job be triggered by a push to Bitbucket using Webhooks instead of Services?

As an addendum; the Bitbucket Build Status Notifier Plugin is NOT compatible with pipeline jobs, hence the need to find a workaround. I'm open to workarounds that don't follow the linked question's strategy as well.

0

There are 0 best solutions below