Running a Pipeline multiple times in parallel

16 views
Skip to first unread message

Sverre Moe

unread,
May 21, 2019, 12:29:50 PM5/21/19
to Jenkins Users

Our build Scripted Pipeline have several stages each in parallel executions.

Screenshot_20190521_181654.png


I need to run two parallel Pipeline builds in the same Run.
I want this Stage view to duplicate and be run in parallel.

However my test parallel script does not look good in Blue Ocean. It is only one Stage.

Screenshot_20190521_182645.png



My test parallel Scripted Pipeline
    parallel 'ReleaseA': {
        stage
("Checkout") {
            println
"Checkout"
       
}
       
        stage
("Build") {
            parallel
'sles12.3-x86_64': {
                println
"Build"
           
}, 'sles15.0-x86_64': {
                println
"Build"
           
}
       
}
       
        stage
("Analysis") {
            println
"Analysis"
       
}
       
        stage
("Staging") {
            parallel
'sles12.3-x86_64': {
                println
"Staging"
           
}, 'sles15.0-x86_64': {
                println
"Staging"
           
}            
       
}
       
        stage
("Verify") {
            parallel
'sles12.3-x86_64': {
                println
"Verify"
           
}, 'sles15.0-x86_64': {
                println
"Verify"
           
}
       
}
       
        stage
("Publish") {
            parallel
'sles12.3-x86_64': {
                println
"Publish"
           
}, 'sles15.0-x86_64': {
                println
"Publish"
           
}  
       
}
   
}, 'ReleaseB': {
        stage
("Checkout") {
            println
"Checkout"
       
}
       
        stage
("Build") {
            parallel
'sles12.3-x86_64': {
                println
"Build"
           
}, 'sles15.0-x86_64': {
                println
"Build"
           
}
       
}
       
        stage
("Analysis") {
            println
"Analysis"
       
}
       
        stage
("Staging") {
            parallel
'sles12.3-x86_64': {
                println
"Staging"
           
}, 'sles15.0-x86_64': {
                println
"Staging"
           
}            
       
}
       
        stage
("Verify") {
            parallel
'sles12.3-x86_64': {
                println
"Verify"
           
}, 'sles15.0-x86_64': {
                println
"Verify"
           
}
       
}
       
        stage
("Publish") {
            parallel
'sles12.3-x86_64': {
                println
"Publish"
           
}, 'sles15.0-x86_64': {
                println
"Publish"
           
}  
       
}
   
}


Baptiste Mathus

unread,
May 31, 2019, 7:30:02 AM5/31/19
to jenkins...@googlegroups.com
--
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/a0d4ee14-0121-4f74-8eac-bdb23a51696c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages