diff options
author | Martin Stockhammer <martin_s@apache.org> | 2018-05-05 20:55:11 +0200 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2018-05-05 20:55:11 +0200 |
commit | 651421112e298e106397586ec1d3d5a0d0a1f859 (patch) | |
tree | 2768a6719ec8d9254372a0f2909cbe2685c6da6c /Jenkinsfile | |
parent | 40bb3fd7bea2828e63205e57c35bd5d90a32746e (diff) | |
download | archiva-651421112e298e106397586ec1d3d5a0d0a1f859.tar.gz archiva-651421112e298e106397586ec1d3d5a0d0a1f859.zip |
Fixing result check
Diffstat (limited to 'Jenkinsfile')
-rw-r--r-- | Jenkinsfile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index e3ffc011b..2dc13129f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}") } } |