Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

What should be the Refspec in Jenkins to build only when PR is created against specific branch?

dat_ramesha August 27, 2019

When a PR is created to merge any branch into develop branch, I want to run Jenkins Build on the incoming branch so that I know that after merging the build will be successful.

I found this article and it says I have to configure Refspec as below:

+refs/pull-requests/*/from:refs/remotes/*

but I am not sure where I should update this Refspec so that only PRs against develop branch triggers Jenkins Build.

 

Screenshot:

Screen Shot 2019-08-27 at 12.35.15 PM.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events