Skip to content

Instantly share code, notes, and snippets.

@hoto
Created June 21, 2018 11:01
Show Gist options
  • Save hoto/5039a3a2bfb75ace2e3faff629db4e70 to your computer and use it in GitHub Desktop.
Save hoto/5039a3a2bfb75ace2e3faff629db4e70 to your computer and use it in GitHub Desktop.
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