cosmetics take 2
This commit is contained in:
parent
f03fd75af7
commit
6cca1bb038
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -30,18 +30,20 @@ pipeline {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
} catch(org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
|
} catch(org.jenkinsci.plugins.workflow.steps.FlowInterruptedException e) {
|
||||||
|
// input timed out
|
||||||
error "Caught ${e.toString()}"
|
error "Caught ${e.toString()}"
|
||||||
} catch(err) { // input false
|
} catch(err) {
|
||||||
|
// manually aborted
|
||||||
echo "This job has been aborted"
|
echo "This job has been aborted"
|
||||||
}
|
}
|
||||||
if (userInput == true) {
|
/*if (userInput == true) {
|
||||||
// do something
|
// do something
|
||||||
echo "this was successful"
|
echo "this was successful"
|
||||||
} else {
|
} else {
|
||||||
// do something else
|
// do something else
|
||||||
echo "this was not successful"
|
echo "this was not successful"
|
||||||
currentBuild.result = 'FAILURE'
|
currentBuild.result = 'FAILURE'
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user