I want to repeat the execution of a pipeline multiple times.

I tried: 

pipeline.groovy:

for(i=0;i<5;++i)
{
   startPipeline()
}

I got a very long pipeline where the stages are 5 time repeated.

stage1 ------ stage2 -------- stage1 ------ stage2 -------- stage1 ------ 
stage2 -------- stage1 ------ stage2 -------- stage1 ------ stage2 --------

But I want 5 pipelines executing sequentially 
stage1 ------ stage2 -------- 
(pipeline1 finished, success or failure)
stage1 ------ stage2 --------
(pipeline2 finished, success or failure)
stage1 ------ stage2 --------
(pipeline3 finished, success or failure)
stage1 ------ stage2 --------
(pipeline4 finished, success or failure)
stage1 ------ stage2 --------


is this possible?

-- 
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/ccbeee6c-6ab6-49a6-8d7e-1955ea458698%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to