37 lines
1.0 KiB
Groovy
37 lines
1.0 KiB
Groovy
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('build and deploy') {
|
|
parallel {
|
|
stage('Branch A') {
|
|
agent any
|
|
steps {
|
|
echo "On Branch A"
|
|
}
|
|
}
|
|
stage('Branch B') {
|
|
agent any
|
|
steps {
|
|
echo "On Branch B"
|
|
}
|
|
}
|
|
stage('Branch C') {
|
|
agent any
|
|
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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|