Sandbox limitations: getCause()

This commit is contained in:
Dominik Chilla 2020-07-11 23:30:55 +02:00
parent 3c1692a326
commit 696a2cae96

4
Jenkinsfile vendored
View File

@ -16,9 +16,7 @@ pipeline {
name: 'Please confirm you agree with this'
]])
} catch(err) { // input false
def user = err.getCauses()[0].getUser()
userInput = false
echo "Aborted by: [${user}]"
echo "This Job has been Aborted"
}
if (userInput == true) {
// do something