Created
June 21, 2018 11:01
-
-
Save hoto/5039a3a2bfb75ace2e3faff629db4e70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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