2019-08-17 05:24:48 +02:00
|
|
|
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 ""
|
2019-08-17 05:24:48 +02:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
echo "On Branch A"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Branch B') {
|
|
|
|
agent {
|
2019-08-31 21:52:19 +02:00
|
|
|
label ""
|
2019-08-17 05:24:48 +02:00
|
|
|
}
|
|
|
|
steps {
|
|
|
|
echo "On Branch B"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Branch C') {
|
|
|
|
agent {
|
2019-08-31 21:52:19 +02:00
|
|
|
label ""
|
2019-08-17 05:24:48 +02:00
|
|
|
}
|
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|