You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hop.apache.org by ha...@apache.org on 2020/11/16 13:56:44 UTC

[incubator-hop] branch master updated: Add quality step with sonarcloud (#384)

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

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hop.git


The following commit(s) were added to refs/heads/master by this push:
     new 7c3fdec  Add quality step with sonarcloud (#384)
7c3fdec is described below

commit 7c3fdec735e3cffab4b4eb1281f2cde7c7d525bc
Author: François Papon <fp...@apache.org>
AuthorDate: Mon Nov 16 14:55:48 2020 +0100

    Add quality step with sonarcloud (#384)
---
 Jenkinsfile | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/Jenkinsfile b/Jenkinsfile
index 5bf2ce5..9067b1c 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -98,6 +98,14 @@ pipeline {
                 }
             }
         }
+        stage('Code Quality') {
+            steps {
+                echo 'Checking Code Quality on SonarCloud'
+                withCredentials([string(credentialsId: 'sonarcloud-key-apache-hop', variable: 'SONAR_TOKEN')]) {
+                    sh 'mvn sonar:sonar -Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache -Dsonar.projectKey=apache_incubator-hop -Dsonar.branch.name=${BRANCH_NAME} -Dsonar.login=${SONAR_TOKEN}'
+                }
+            }
+        }
         stage('Deploy'){
             when {
                 branch 'master'