fix syntax

Signed-off-by: olivier lamy <olamy@apache.org>
This commit is contained in:
olivier lamy 2018-12-30 11:17:40 +10:00
parent ededea0232
commit 50df55e3cc
1 changed files with 10 additions and 5 deletions

15
Jenkinsfile vendored
View File

@ -69,17 +69,22 @@ pipeline {
cleanWs deleteDirs: true, notFailBuild: true, patterns: [[pattern: '.repository', type: 'EXCLUDE']]
}
unstable {
asfStandardBuild.notifyBuild( "Unstable Build ")
scripts{
asfStandardBuild.notifyBuild( "Unstable Build ")
}
}
failure {
asfStandardBuild.notifyBuild( "Error in redback core build ")
scripts{
asfStandardBuild.notifyBuild( "Error in redback core build ")
}
}
success {
script {
def previousResult = currentBuild.previousBuild?.result
if (previousResult && !currentBuild.resultIsWorseOrEqualTo( previousResult ) )
{
notifyBuild( "Fixed" )
if (previousResult && !currentBuild.resultIsWorseOrEqualTo( previousResult ) ) {
scripts{
asfStandardBuild.notifyBuild( "Fixed" )
}
}
}
}