use script
@@ -104,10 +104,12 @@ pipeline {
sh "rm -f /tmp/archiva-master-jdk-8-${env.JOB_NAME}.xml"
}
failure {
+ script{
asfStandardBuild.notifyBuild("Failure in BuildAndDeploy stage")
}
}
}
+ }
@@ -155,8 +157,10 @@ pipeline {
post {
unstable {
+ script {
asfStandardBuild.notifyBuild("Unstable Build")
}
+ }
success {
script {
def previousResult = currentBuild.previousBuild?.result
