Jenkins build on PR Merged

Giancarlo August 11, 2020

Hello, 

I've reading some post but after try suggestion still not working on my side so I decided to post to get some help due I no longer have clue where to look.

  • We've a workspace in Bitbucket Cloud with our Repository
  • Webhook is created in the Repo to point to our Jenkins server
    • Only Pull Request -> Merged is checked out into Webhook options
    • No errors are found on the history
  • Jenkins is configured to use Bitbucket Plugin and Pipeline is configured as Bitbucket Job
    • Strategy selected are:
      • Discover Branches - > "Only Branches that are also filed as PRs"
      • Discover Pull Request from Origin -> "Merging the pull request with the current target branch revision"

In resume our goal is that when the Pull Request is created we would like that Jenkins job is kick in by the webhook to start the build - currently we're using the polling each 5 minutes... but there should be better way

 

Our Jenkins version is 2.235.3

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events