Re: Trigger job upon pull request merg into master.

2017-01-23 Thread Isaac Eliassi
t; > jenkins...@googlegroups.com > > *Date: *Sunday, January 22, 2017 at 8:46 AM > *To: *Jenkins Users > > *Subject: *Trigger job upon pull request merg into master. > > > > Hi, > > > > We are looking for a way to trigger a job when a pull request is b

Re: Trigger job upon pull request merg into master.

2017-01-23 Thread Isaac Eliassi
Hi, Thanks for the advice, I am not using pipeline, but I will try to wrapper job and implement your idea. I will post here a reply whether it worked. On Sunday, January 22, 2017 at 6:54:55 PM UTC+2, Mark Waite wrote: > > Interesting use case. > > If you're using a pipeline job, and don't mind

Re: Trigger job upon pull request merg into master.

2017-01-23 Thread Indra Gunawan (ingunawa)
te: Sunday, January 22, 2017 at 8:46 AM To: Jenkins Users Subject: Trigger job upon pull request merg into master. Hi, We are looking for a way to trigger a job when a pull request is being merged into master. We would like to ignore all the other events, particularly pushing code directly to m

Re: Trigger job upon pull request merg into master.

2017-01-22 Thread Mark Waite
Interesting use case. If you're using a pipeline job, and don't mind that the job starts only to end very quickly, then you could configure the Jenkinsfile to read the HEAD git commit and determine how many parents it has. If it has more than 1 parent, then it is a merge commit and should be buil

Trigger job upon pull request merg into master.

2017-01-22 Thread Isaac Eliassi
Hi, We are looking for a way to trigger a job when a pull request is being merged into master. We would like to *ignore* all the other events, particularly pushing code directly to master. We tried to configure the job as follows: 1. Source Code Management 1. Refspec (under