47 lines
1.3 KiB
Plaintext
47 lines
1.3 KiB
Plaintext
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Non-Parallel Stage') {
|
|
steps {
|
|
echo 'This stage will be executed first.'
|
|
}
|
|
}
|
|
stage('Parallel Stage') {
|
|
parallel {
|
|
stage('Branch A') {
|
|
agent {
|
|
label ""
|
|
}
|
|
steps {
|
|
echo "On Branch A"
|
|
}
|
|
}
|
|
stage('Branch B') {
|
|
agent {
|
|
label ""
|
|
}
|
|
steps {
|
|
echo "On Branch B"
|
|
}
|
|
}
|
|
stage('Branch C') {
|
|
agent {
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |