You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@archiva.apache.org by ma...@apache.org on 2018/05/05 18:55:14 UTC

[archiva] branch master updated: Fixing result check

This is an automated email from the ASF dual-hosted git repository.

martin_s pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/archiva.git


The following commit(s) were added to refs/heads/master by this push:
     new 6514211  Fixing result check
6514211 is described below

commit 651421112e298e106397586ec1d3d5a0d0a1f859
Author: Martin Stockhammer <ma...@apache.org>
AuthorDate: Sat May 5 20:55:11 2018 +0200

    Fixing result check
---
 Jenkinsfile       | 2 +-
 Jenkinsfile-itest | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index e3ffc01..2dc1312 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}")
                         }
                     }
diff --git a/Jenkinsfile-itest b/Jenkinsfile-itest
index 7512131..7cc1015 100644
--- a/Jenkinsfile-itest
+++ b/Jenkinsfile-itest
@@ -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}")
                 }
             }

-- 
To stop receiving notification emails like this one, please contact
martin_s@apache.org.