gCubeBuilder/examples/parallel_nested

47 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

pipeline {
agent any
stages {
stage('Non-Parallel Stage') {
steps {
echo 'This stage will be executed first.'
}
}
stage('Parallel Stage') {
parallel {
stage('Branch A') {
agent {
2019-08-31 21:52:19 +02:00
label ""
}
steps {
echo "On Branch A"
}
}
stage('Branch B') {
agent {
2019-08-31 21:52:19 +02:00
label ""
}
steps {
echo "On Branch B"
}
}
stage('Branch C') {
agent {
2019-08-31 21:52:19 +02:00
label ""
}
stages {
stage('Nested 1') {
steps {
echo "In stage Nested 1 within Branch C"
}
}
stage('Nested 2') {
steps {
echo "In stage Nested 2 within Branch C"
}
}
}
}
}
}
}
}