Fwd: using pararllel in a dynamic list of stages

9 views
Skip to first unread message

Jes Struck

unread,
Sep 15, 2017, 7:00:28 AM9/15/17
to jenkins...@googlegroups.com
Hi all I'm trying to do something that might be  a stupid idea, but I can't get it to work as i exspect

I have a list of components that I whant to do something with, so in my Jenkins file i have created a list, and used each on that list to dynamicly create stages. But my problem is that we would actually like to have al this stuff done in parallel but each is I'm guessing secuential by nature. so does anybody have a good solution to this?


currently my code has the structure like
node('master){
  [a,b,c,...].each{
    stage(it){
      dir(it){
        //do something with the component's
      }
    }
  }
}





--
/Jes

Viacheslav Dubrovskyi

unread,
Sep 15, 2017, 7:56:52 AM9/15/17
to jenkins...@googlegroups.com

Hi,

Did you read https://jenkins.io/doc/pipeline/examples/#parallel-from-list ?


15.09.2017 13:33, Jes Struck пишет:
--
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/CACfmdz0Ox26Z4Dgw74wd5grF5k%3DKCU%2BLaVukup2mZ8VxBu7SUQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
WBD,
Viacheslav Dubrovskyi
Reply all
Reply to author
Forward
0 new messages