Skip to content

Instantly share code, notes, and snippets.

@askalee
askalee / DynamicParallelSteps.groovy
Last active May 23, 2018 05:19
Dynamic parallel steps (Declarative Pipeline)
pipeline {
agent { label "linux"}
stages {
stage('1') {
steps {
script {
def tests = [:]
for (f in ['a', 'b']) {
tests["${f}"] = {
node('linux') {