Fixing result check

This commit is contained in:
Martin Stockhammer 2018-05-05 20:55:11 +02:00
parent 40bb3fd7be
commit 651421112e
2 changed files with 2 additions and 2 deletions

2
Jenkinsfile vendored
View File

@ -94,7 +94,7 @@ pipeline {
archiveArtifacts '**/target/*.war,**/target/*-bin.zip'
script {
def previousResult = currentBuild.previousBuild?.result
if (previousResult && !currentBuild.isWorseOrEqual(previousResult)) {
if (previousResult && !currentBuild.resultIsWorseOrEqualTo(previousResult)) {
notifyBuild("Fixed: ${currentBuild.currentResult}")
}
}

View File

@ -155,7 +155,7 @@ pipeline {
success {
script {
def previousResult = currentBuild.previousBuild?.result
if (previousResult && !currentBuild.isWorseOrEqual(previousResult)) {
if (previousResult && !currentBuild.resultIsWorseOrEqualTo(previousResult)) {
notifyBuild("Fixed: ${currentBuild.currentResult}")
}
}