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'
|
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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user