From 636e0a09809f1c1f6380fa3c3c0d49f720afa001 Mon Sep 17 00:00:00 2001 From: olivier lamy Date: Mon, 31 Dec 2018 14:45:35 +1000 Subject: use script Signed-off-by: olivier lamy --- Jenkinsfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Jenkinsfile') diff --git a/Jenkinsfile b/Jenkinsfile index b9b80792d..13c56d928 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -104,7 +104,9 @@ pipeline { sh "rm -f /tmp/archiva-master-jdk-8-${env.JOB_NAME}.xml" } failure { - asfStandardBuild.notifyBuild("Failure in BuildAndDeploy stage") + script{ + asfStandardBuild.notifyBuild("Failure in BuildAndDeploy stage") + } } } } @@ -155,7 +157,9 @@ pipeline { post { unstable { - asfStandardBuild.notifyBuild("Unstable Build") + script { + asfStandardBuild.notifyBuild("Unstable Build") + } } success { script { -- cgit v1.2.3