diff --git a/build/postactionstest.groovy b/build/postactionstest.groovy index f155b94..885bc25 100644 --- a/build/postactionstest.groovy +++ b/build/postactionstest.groovy @@ -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'