18 lines
300 B
Plaintext
18 lines
300 B
Plaintext
|
pipeline {
|
||
|
agent any
|
||
|
stages {
|
||
|
stage('build') {
|
||
|
steps {
|
||
|
buildComponents items: ("a".."f").collect { "Stage ${it}" }
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
def buildComponents(args) {
|
||
|
parallel args.items.collectEntries { name -> [ "${name}": {
|
||
|
stage("${name}") {
|
||
|
echo name
|
||
|
}
|
||
|
}]}
|
||
|
}
|