You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by pi...@apache.org on 2019/12/06 18:07:26 UTC

[royale-compiler] branch develop updated: Sonary: Attempt of fix by providing credential and data configuration for sonarcloud

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

piotrz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-compiler.git


The following commit(s) were added to refs/heads/develop by this push:
     new 11dea18  Sonary: Attempt of fix by providing credential and data configuration for sonarcloud
11dea18 is described below

commit 11dea18dfe4f65202ac10c8f77ef0b6dab3079c2
Author: Piotr Zarzycki <pi...@gmail.com>
AuthorDate: Fri Dec 6 19:07:08 2019 +0100

    Sonary: Attempt of fix by providing credential and data configuration for sonarcloud
---
 Jenkinsfile | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 3490bb5..c526269 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -91,6 +91,17 @@ node('jenkins-win-he-de-1') {
                 }
             }
 
+        stage('Code Quality') {
+            steps {
+                echo 'Checking Code Quality on SonarCloud'
+                // Then run the analysis
+                // 'my-sonarcloud-token' needs to be defined for this job and contains the user token
+                withCredentials([string(credentialsId: 'piotrz-sonarcloud-token', variable: 'SONAR_TOKEN')]) {
+                    sh 'mvn clean verify sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_royale-compiler -Dsonar.branch.name=develop -Dsonar.login=${SONAR_TOKEN}'
+                }
+            }
+        }
+
     }