You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by re...@apache.org on 2020/03/02 01:03:04 UTC

[cxf] branch master updated: Fixed JDK8 tooling, mark build as unstable (instead of failed) when tests are run but some failed

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 513f29f  Fixed JDK8 tooling, mark build as unstable (instead of failed) when tests are run but some failed
513f29f is described below

commit 513f29f1faac57baa63eac224680c88e5633a2f1
Author: reta <dr...@gmail.com>
AuthorDate: Sun Mar 1 20:02:28 2020 -0500

    Fixed JDK8 tooling, mark build as unstable (instead of failed) when tests are run but some failed
---
 tck/Jenkinsfile | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/tck/Jenkinsfile b/tck/Jenkinsfile
index 6e7d127..b2fdf9d 100644
--- a/tck/Jenkinsfile
+++ b/tck/Jenkinsfile
@@ -6,7 +6,7 @@ pipeline {
     tools { 
         ant 'Ant 1.10.6'
         maven 'Maven 3.6.2' 
-        jdk 'JDK 1.8.0_191' 
+        jdk 'JDK 1.8.0_241' 
     }
     
     environment {
@@ -118,7 +118,15 @@ pipeline {
                     dir("${TS_HOME}/bin") {
                         sh "ant config.vi"
                         sh "ant deploy.all"
-                        sh "ant run.all"
+                        script {
+                            try {
+                                echo 'Running all TCK tests ...'
+                                sh "ant run.all"
+                            } catch (exc) {
+                                echo 'Some TCK tests have failed, marking build as unstable'
+                                currentBuild.result = 'UNSTABLE'
+                            }
+                        }
                     }
                 }
            }
@@ -148,4 +156,4 @@ pipeline {
             cleanWs()
         }
     }
-}
\ No newline at end of file
+}