timeout
This commit is contained in:
parent
696a2cae96
commit
765c108d74
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -9,12 +9,14 @@ pipeline {
|
||||
script {
|
||||
def userInput
|
||||
try {
|
||||
timeout(time: 5, unit: 'SECONDS') {
|
||||
userInput = input(id: 'Proceed1', message: 'Was this successful?', parameters: [[
|
||||
$class: 'BooleanParameterDefinition',
|
||||
defaultValue: true,
|
||||
description: '',
|
||||
name: 'Please confirm you agree with this'
|
||||
]])
|
||||
}
|
||||
} catch(err) { // input false
|
||||
echo "This Job has been Aborted"
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user