I create a Jenkins job with multibranch pipeline, and triggered by develop
and PR-*
branches.
By setting strategy to "All branches" and "Discover pull requests from origin" to "Merging the pull request with the current target branch revision", I can build when
new commit in
develop
branch, develop branch pipeline triggered.PR open (
develop
<-feature/aaa
), PR build with code which merged develop andfeature/aaa
branchnew commit in
feature/aaa
branch, PR build with code with mergeddevelop
and newfeature/aaa
branch
But when new commit in develop
, there is no trigger in opened pull request (which merge target is develop
)'s pipeline.
I want to re-build in PR-123
when develop branch updated.
How can I triggering the Pull Request job when target branch updated?
Any idea how to do or if it's actually possible?