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