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/12/06 15:25:02 UTC

[incubator-hop] 20/22: HOP-2122

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

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

commit 30ead660f37934195a439651820c9ca13f223714
Author: Hans Van Akelyen <ha...@gmail.com>
AuthorDate: Sun Dec 6 13:40:03 2020 +0100

    HOP-2122
    
    change sonar to jdk 11 and run full flow
---
 Jenkinsfile.daily | 31 ++++++++++++++++---------------
 1 file changed, 16 insertions(+), 15 deletions(-)

diff --git a/Jenkinsfile.daily b/Jenkinsfile.daily
index 3d625ef..6620623 100644
--- a/Jenkinsfile.daily
+++ b/Jenkinsfile.daily
@@ -88,20 +88,23 @@ pipeline {
             }
             steps {
                 echo 'Build & Test'
-                sh "mvn $MAVEN_PARAMS clean install -DskipTests=true"
+                sh "mvn $MAVEN_PARAMS clean install"
+            }
+        }
+        stage('Code Quality') {
+            tools{
+                jdk 'jdk_11_latest'
+            }
+            when {
+                branch 'integration-tests'
+            }
+            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('Code Quality') {
-        //     when {
-        //         branch 'integration-tests'
-        //     }
-        //     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('Create Docker image & Run Tests'){
             when {
                 branch 'integration-tests'
@@ -128,9 +131,7 @@ pipeline {
             steps {
                 sh "docker rmi $imagename:latest"
             }
-        }
-        
-
+        }       
     }
     post {
         always {