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 jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/443b39af-a82b-42f1-86d8-e256c6450d4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to