Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cccaternberg/f7e92e6d16d60d53daf56b8bfb97d11c to your computer and use it in GitHub Desktop.
Save cccaternberg/f7e92e6d16d60d53daf56b8bfb97d11c to your computer and use it in GitHub Desktop.
// assume this is some list of things you're going to do something with
def someList
def parallelBranches = someList.collectEntries { n ->
[(n): {
throttle('category') {
node('some-node') {
// do some things with n
}
}
}]
parallel parallelBranches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment