diff --git a/scripts/jenkins_regress.sh b/scripts/jenkins_regress.sh index bf0895f3..53aa2a5b 100755 --- a/scripts/jenkins_regress.sh +++ b/scripts/jenkins_regress.sh @@ -19,43 +19,3 @@ gpg --quiet --batch --yes --decrypt --passphrase="$GPG_KEY" --output profile.pro exit_code_decorator "mvn clean compile" exit_code_decorator "mvn -Dgpg.skip -DtagsToExclude=com.snowflake.snowpark.PerfTest -e scoverage:report -P test-coverage" - -version=`git rev-parse HEAD` - -if [ -z $pr_code_coverage ]; - then - echo "For main" - /usr/local/sonar-scanner-cli/bin/sonar-scanner \ - -Dsonar.host.url=https://sonarqube-eng.int.snowflakecomputing.com \ - -Dsonar.projectBaseDir=/mnt/jenkins/home/jenkins/workspace/SnowparkClientRegressRunner/thundersnow \ - -Dsonar.projectVersion=1.11.0 \ - -Dsonar.scala.coverage.reportPaths=target/scoverage.xml \ - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \ - -Dsonar.sources=src/main \ - -Dsonar.binaries=target/scoverage-classes \ - -Dsonar.java.binaries=target/scoverage-classes \ - -Dsonar.tests=src/test \ - -Dsonar.scala.version=2.12 \ - -Dsonar.projectKey=snowpark \ - -Dsonar.scm.revision=${version} \ - -Dsonar.scm.provider=git -else - echo "For Pull Request" - /usr/local/sonar-scanner-cli/bin/sonar-scanner \ - -Dsonar.host.url=https://sonarqube-eng.int.snowflakecomputing.com \ - -Dsonar.projectBaseDir=/mnt/jenkins/home/jenkins/workspace/SnowparkClientRegressRunner/thundersnow \ - -Dsonar.projectVersion=1.11.0 \ - -Dsonar.scala.coverage.reportPaths=target/scoverage.xml \ - -Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \ - -Dsonar.sources=src/main \ - -Dsonar.binaries=target/scoverage-classes \ - -Dsonar.java.binaries=target/scoverage-classes \ - -Dsonar.tests=src/test \ - -Dsonar.scala.version=2.12 \ - -Dsonar.projectKey=snowpark \ - -Dsonar.scm.revision=${version} \ - -Dsonar.scm.provider=git \ - -Dsonar.pullrequest.key=${PR_KEY} \ - -Dsonar.pullrequest.branch=${PR_ID} \ - -Dsonar.pullrequest.base=main -fi diff --git a/sonar-project.properties b/sonar-project.properties deleted file mode 100644 index 79dc09ef..00000000 --- a/sonar-project.properties +++ /dev/null @@ -1,4 +0,0 @@ -sonar.projectKey=snowpark -sonar.projectName=Snowpark -sonar.projectVersion=1.11.0 -sonar.sourceEncoding=UTF-8