You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2019/08/07 16:40:33 UTC

[plc4x] branch develop updated: - Try to make sonar run on sonarcloud

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

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4bccf50  - Try to make sonar run on sonarcloud
4bccf50 is described below

commit 4bccf50340b8a8befc73ffba34fa4ccba25f3966
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Wed Aug 7 18:40:22 2019 +0200

    - Try to make sonar run on sonarcloud
---
 Jenkinsfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index 2b99cfa..89f3a3f 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -124,9 +124,10 @@ pipeline {
                 branch 'develop'
             }
             steps {
-                echo 'Checking Code Quality'
-                withSonarQubeEnv('ASF Sonar Analysis') {
-                    sh 'mvn -P${JENKINS_PROFILE},with-boost,with-java,with-dotnet,with-python,with-proxies sonar:sonar'
+                echo 'Checking Code Quality on SonarCloud'
+                def sonarcloudParams="-Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_plc4x -Dsonar.branch.name=develop"
+                withCredentials([string(credentialsId: 'chris-sonarcloud-token', variable: 'SONAR_TOKEN')]) {
+                    sh 'mvn -P${JENKINS_PROFILE},with-boost,with-java,with-dotnet,with-python,with-proxies sonar:sonar ${sonarcloudParams}'
                 }
             }
         }