From 1b4e670855cb857491b351c792e86075452163bf Mon Sep 17 00:00:00 2001 From: Dan Hawkins Date: Fri, 19 Nov 2021 23:48:28 +0000 Subject: [PATCH] Add failed build action --- build/postactionstest.groovy | 6 ++++++ 1 file changed, 6 insertions(+) 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'