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' name: 'Please confirm you agree with this'
]]) ]])
} catch(err) { // input false } catch(err) { // input false
def user = err.getCauses()[0].getUser() echo "This Job has been Aborted"
userInput = false
echo "Aborted by: [${user}]"
} }
if (userInput == true) { if (userInput == true) {
// do something // do something