Serial or parallel execution of Jenkins build jobs ?

758 views
Skip to first unread message

Sharma, Ashish

unread,
Feb 4, 2015, 10:27:07 AM2/4/15
to jenkins...@googlegroups.com
Hi,

I am a newbie to Jenkins and I have following questions:

1. If I have two Jenkins jobs and they are launched simultaneously for building , do they execute in parallel or in a sequence one after the other ?

2. Since my source code is managed on github, I am also using the GitHub pull request builder plugin (https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin) to manage code merges from multiple developers in a master git branch from their feature branches,
Here my question is , if multiple merge requests are launched for single Jenkins pull request builder job, will they execute in parallel or in a sequence?

I haven't got any documentation from Jenkins on the above questions and any reference in support of your answer would be helpful.

Thanks in advance
Ashish

Mark Waite

unread,
Feb 4, 2015, 10:35:23 AM2/4/15
to jenkins...@googlegroups.com
I generally use a single job to process merge requests for a branch, and I use the default configuration of the job which prevents multiple copies of that job from executing in parallel.  That combination means that merge requests are considered one at a time.

I'm not sure how to offer you a reference for that.  You can refer to the wiki page that describes the git plugin and to Kohsuke's "git polling must die" blog posting and to google search results on Jenkins job configuration techniques.  I suspect there are also references to the technique in the "Jenkins Continuous Integration Cookbook" by Alan Mark Berg.

Mark Waite

Ashish

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/F1BCA7C8C9F483439DBB1D96C2FA9FEA1FBA198A%40G4W3203.americas.hpqcorp.net.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

Christopher Orr

unread,
Feb 4, 2015, 10:39:41 AM2/4/15
to jenkins...@googlegroups.com
Hi there.

On 04/02/15 16:26, Sharma, Ashish wrote:
> I am a newbie to Jenkins and I have following questions:
>
> 1. If I have two Jenkins jobs and they are launched simultaneously
> for building , do they execute in parallel or in a sequence one after
> the other ?

As Mark mentioned, by default, they will execute serially.

To answer the question about documentation for this, see the "Execute
concurrent builds if necessary" checkbox and its inline help
text — it's one of the first items at the top of any freestyle job
configuration page.

Regards,
Chris
Reply all
Reply to author
Forward
0 new messages