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

zabetak pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 8c3567ea8e4 HIVE-26619: Sonar analysis is not run for the master 
branch (Alessandro Solimando reviewed by Stamatis Zampetakis)
8c3567ea8e4 is described below

commit 8c3567ea8e423b202cde370f4d3fb401bcc23e46
Author: Alessandro Solimando <alessandro.solima...@gmail.com>
AuthorDate: Mon Oct 10 18:23:14 2022 +0200

    HIVE-26619: Sonar analysis is not run for the master branch (Alessandro 
Solimando reviewed by Stamatis Zampetakis)
    
    Closes #3655
---
 Jenkinsfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Jenkinsfile b/Jenkinsfile
index fab48ede662..d9c30510143 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -321,12 +321,12 @@ tar -xzf 
packaging/target/apache-hive-*-nightly-*-src.tar.gz
   }
   branches['sonar'] = {
       executorNode {
-          if(env.CHANGE_BRANCH == 'master') {
+          if(env.BRANCH_NAME == 'master') {
               stage('Prepare') {
                   loadWS();
               }
               stage('Sonar') {
-                  sonarAnalysis("-Dsonar.branch.name=${CHANGE_BRANCH}")
+                  sonarAnalysis("-Dsonar.branch.name=${BRANCH_NAME}")
               }
           } else if(env.CHANGE_ID) {
               stage('Prepare') {
@@ -340,7 +340,7 @@ tar -xzf packaging/target/apache-hive-*-nightly-*-src.tar.gz
                                    -Dsonar.pullrequest.provider=GitHub""")
               }
           } else {
-              echo "Skipping sonar analysis, we only run it on PRs and on the 
master branch"
+              echo "Skipping sonar analysis, we only run it on PRs and on the 
master branch, found ${env.BRANCH_NAME}"
           }
       }
   }

Reply via email to