Add failed build action
This commit is contained in:
parent
8b0c194b47
commit
1b4e670855
1 changed files with 6 additions and 0 deletions
|
|
@ -13,6 +13,9 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
echo "Execute dummy build job"
|
||||
if (CAUSE_ERROR) {
|
||||
error("Causing error")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -23,6 +26,9 @@ pipeline {
|
|||
}
|
||||
failure {
|
||||
echo 'Failed build'
|
||||
script {
|
||||
load("${autobuilder.commonscripts()}/build/postactions.groovy").performFailedBuildActions()
|
||||
}
|
||||
}
|
||||
unstable {
|
||||
echo 'Unstable build'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue