mirror of https://github.com/apache/archiva.git
Fixing result check
This commit is contained in:
parent
40bb3fd7be
commit
651421112e
|
@ -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}")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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}")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue