2018-08-08 15:53:18 -04:00
|
|
|
pipeline {
|
2018-08-09 15:53:52 -04:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2018-08-08 15:53:18 -04:00
|
|
|
}
|