did you figure out a solution?

On Wednesday, April 22, 2015 at 11:08:22 AM UTC-4, Zile Rehman wrote:
>
> I am trying to use the Build Flow Plugin (
> https://wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugin) to 
> dynamically define a parallel build job.
>
> In my main script, I am dynamically defining a playCompBuilderList. Then I 
> iterate through through the list and trigger the build for each item, as 
> shown below.. My question is, how do I wrap it up in parallel statement to 
> trigger the builds in parallel?
>
>
> playCompBuilderList.each {
>         it.each {
>             comp, map -> build('play_comp_builder',
>                                 COMP            : map['comp'],
>                                 COMP_TAG        : map['comp_tag'],
>                                 CORUS_TAG       : map['corus_tag'],
>                                 DRAGONBALL_TAG  : map['dragonball_tag'],
>                                 PLAY_VERSION    : map['play_version'])
>         }
> }
>
> This is a sample playCompBuilderList ==> [
>     {
>         "athena": {
>             "comp": "athena",
>             "comp_tag": "develop",
>             "corus_tag": "develop",
>             "dragonball_tag": "master",
>             "play_version": "2.3.6"
>         }
>     },
>     {
>         "atlas": {
>             "comp": "atlas",
>             "comp_tag": "develop",
>             "corus_tag": "develop",
>             "dragonball_tag": "master",
>             "play_version": "2.3.6"
>         }
>     }
> ]
>
>
>
>
> I tried something like this but didn’t work:
>
> *parallel (*
>   playCompBuilderList.each {
>         it.each {
>             comp, map -> build('play_comp_builder',
>                                 COMP            : map['comp'],
>                                 COMP_TAG        : map['comp_tag'],
>                                 CORUS_TAG       : map['corus_tag'],
>                                 DRAGONBALL_TAG  : map['dragonball_tag'],
>                                 PLAY_VERSION    : map['play_version'])
>         }
>   }
> *)*
>
> Please help! Thanks.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/9723d47c-aa78-4042-bb64-74c88854aa35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to