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

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

commit 04efed62c5fa308bc8bc530f123999130a35b5f8
Author: Juan Pablo Santos Rodríguez <[email protected]>
AuthorDate: Thu Mar 30 23:05:52 2023 +0200

    ansiColor seems to have been removed from builds.a.o
---
 Jenkinsfile | 64 ++++++++++++++++++++++++++++++-------------------------------
 1 file changed, 31 insertions(+), 33 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index edf10f6f1..277913769 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -24,45 +24,43 @@ buildJdk19 = 'jdk_19_latest'
 buildMvn = 'maven_3_latest'
 errMsg = ''
 
-ansiColor( 'xterm' ) {
-    try {
+try {
 
-        stage( 'build source' ) {
-            parallel jdk11Build: {
-                buildAndSonarWith( buildJdk11 )
-            },
-            jdk17Build: {
-                buildWith( buildJdk17 )
-            },
-            jdk19Build: {
-                // don't fail build if jdk-19 build doesn't succeed
-                catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
-                    buildWith( buildJdk19 )
-                }
+    stage( 'build source' ) {
+        parallel jdk11Build: {
+            buildAndSonarWith( buildJdk11 )
+        },
+        jdk17Build: {
+            buildWith( buildJdk17 )
+        },
+        jdk19Build: {
+            // don't fail build if jdk-19 build doesn't succeed
+            catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
+                buildWith( buildJdk19 )
             }
         }
+    }
 
-        if( env.BRANCH_NAME == 'master' ) {
-            build wait: false, job: 'JSPWiki/site', parameters: [ text( name: 
'version', value: 'master' ) ]
-        }
+    if( env.BRANCH_NAME == 'master' ) {
+        build wait: false, job: 'JSPWiki/site', parameters: [ text( name: 
'version', value: 'master' ) ]
+    }
 
-        currentBuild.result = 'SUCCESS'
+    currentBuild.result = 'SUCCESS'
 
-    } catch( Exception err ) {
-        currentBuild.result = 'FAILURE'
-        echo err.message
-        errMsg = '- ' + err.message
-    } finally {
-        node( 'ubuntu' ) {
-            if( currentBuild.result == null ) {
-                currentBuild.result = 'ABORTED'
-            }
-            if( env.BRANCH_NAME == 'master' ) {
-                emailext body: "See ${env.BUILD_URL} $errMsg",
-                         replyTo: '[email protected]',
-                         to: '[email protected]',
-                         subject: "[${env.JOB_NAME}] build 
${env.BUILD_DISPLAY_NAME} - ${currentBuild.result}"
-            }
+} catch( Exception err ) {
+    currentBuild.result = 'FAILURE'
+    echo err.message
+    errMsg = '- ' + err.message
+} finally {
+    node( 'ubuntu' ) {
+        if( currentBuild.result == null ) {
+            currentBuild.result = 'ABORTED'
+        }
+        if( env.BRANCH_NAME == 'master' ) {
+            emailext body: "See ${env.BUILD_URL} $errMsg",
+                     replyTo: '[email protected]',
+                     to: '[email protected]',
+                     subject: "[${env.JOB_NAME}] build 
${env.BUILD_DISPLAY_NAME} - ${currentBuild.result}"
         }
     }
 }

Reply via email to