Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pipeline:
try {
stage 'build':
node {
..
..
}
stage 'deploy stage':
....
stage 'deploy prod':
timeout(5 days...) {
input 'wait for approval'
LOTS of advanced deploy rollout mechanics which can throw exception which should FAIL the build if something goes WRONG.
}
...
} catch (e) {
currentBuild.result = "FAILURE"
} finally {
notifyBuild(currentBuild.result)
}
So how can we set currentBuild.result = "ABORTED" when input simply times out?
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.