The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

dat_ramesha
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events