You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jspwiki.apache.org by ju...@apache.org on 2018/11/03 00:01:11 UTC

[jspwiki-site] branch jbake updated: tiny fix on Jenkinsfile: echo expects a String not an exception

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

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


The following commit(s) were added to refs/heads/jbake by this push:
     new 98e7ff6  tiny fix on Jenkinsfile: echo expects a String not an exception
98e7ff6 is described below

commit 98e7ff6903cdc7a1a58deb62a0f429b725e0e26b
Author: Juan Pablo Santos Rodríguez <ju...@gmail.com>
AuthorDate: Sat Nov 3 01:00:43 2018 +0100

    tiny fix on Jenkinsfile: echo expects a String not an exception
---
 Jenkinsfile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index b966e24..140e059 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -68,8 +68,8 @@ try {
     currentBuild.result = 'SUCCESS'
     
 } catch( Exception err ) {
-    echo err
     currentBuild.result = 'FAILURE'
+    echo err.message
 } finally {
     node( 'ubuntu' ) {
         if( currentBuild.result == null ) {