HiveBrain v1.2.0
Get Started
← Back to all entries
patternMinor

Bitbucket Pull Request Builder Configuration Jenkins

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
pullbuilderjenkinsrequestbitbucketconfiguration

Problem

I need to integrate BitBucket with Jenkins, so that whenever a PR is opened in BitBucket, it will trigger a build in Jenkins. Can someone help describe the exact configuration step that I should follow in BitBucket and Jenkins to achieve this?

This is my configuration so far:

Solution

You can install 'Bitbucket Server Webhook to Jenkins' in Bitbucket.
https://marketplace.atlassian.com/plugins/com.nerdwin15.stash-stash-webhook-jenkins/server/overview

Once install you will need to enable the 'Post Receive' Hook on the required repository.

Remember to enable 'poll SCM' for the Jenkins Job.

Update
You can test the configuration of the plugin here:

Context

StackExchange DevOps Q#719, answer score: 9

Revisions (0)

No revisions yet.