Sandbox limitations: getCause()
This commit is contained in:
parent
3c1692a326
commit
696a2cae96
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user