Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipeline {
agent any
stages {
stage('Stage 1') {
steps {
script {
echo 'Stage 1'
}
}
}
stage('Input') {
agent none
steps {
timeout(1) {
milestone 1
script {
echo 'Input'
}
input 'Continoue?'
milestone 2
}
}
}
stage('Stage 3') {
agent any
steps {
script {
echo 'Stage 3'
}
}
}
}
post {
always {
script {
echo 'xxx always'
}
}
success {
script {
echo 'xxx success'
}
}
changed {
script {
echo 'xxx changed'
}
}
aborted {
script {
echo 'xxx aborted'
}
}
failure {
script {
echo 'xxx failure'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.