use script

Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
olivier lamy 2018-12-31 14:45:35 +10:00
parent 5a80f014e4
commit 636e0a0980
1 changed files with 6 additions and 2 deletions

8
Jenkinsfile vendored
View File

@ -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 {