Reputation: 4089
I would like to build two projects at the same time since one is 64 bit and the other is 32 bit. Currently I have my Jenkins setup to build both using its two executors. But when using the Jenkins Pipeline scripting language, it always builds them sequentially instead of concurrently.
Here is my script which builds the 32 bit project first and then 64 bit
node('master') {
stage('Build')
{
stage('32')
{
build 'Short'
}
stage('64')
{
build 'Long'
}
}
}
NOTE - I don't want to use a plugin like Workflow if I don't have to
Upvotes: 2
Views: 2008
Reputation: 14762
See Jenkins User Documentation, Advanced Scripted Pipeline, Parallel execution:
stage('Build') {
parallel 32: {
...
},
64: {
...
}
}
and also Jenkins pipeline with parallel.
Upvotes: 3