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

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-jenkins.git


The following commit(s) were added to refs/heads/master by this push:
     new 9f1eaf1  SLING-8358 - Build should not fail if a project is not 
onboarded to SonarCloud
9f1eaf1 is described below

commit 9f1eaf12f057b0007bf9537a0917edb84bd62baf
Author: Robert Munteanu <[email protected]>
AuthorDate: Thu Apr 18 12:03:44 2019 +0300

    SLING-8358 - Build should not fail if a project is not onboarded to 
SonarCloud
    
    More debug information
---
 vars/slingOsgiBundleBuild.groovy | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vars/slingOsgiBundleBuild.groovy b/vars/slingOsgiBundleBuild.groovy
index cd7f6fb..82378af 100644
--- a/vars/slingOsgiBundleBuild.groovy
+++ b/vars/slingOsgiBundleBuild.groovy
@@ -52,6 +52,7 @@ def call(Map params = [:]) {
                                     sh "mvn -U clean verify sonar:sonar 
${sonarcloudParams}"
                                 } catch ( Exception e ) {
                                     echo "Message is ${e.message}"
+                                    echo "Cause message is ${e.cause.message}"
                                     if ( e.getMessage().contains("not 
authorized to run analysis")) {
                                         echo "Marking build unstable due to 
missing SonarCloud onboarding. See 
https://cwiki.apache.org/confluence/display/SLING/SonarCloud+analysis for steps 
to fix."
                                         currentBuild.result = 'UNSTABLE'

Reply via email to