Skip to content

Commit fa58ec1

Browse files
committed
removing sonar branch
1 parent a58087d commit fa58ec1

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Jenkinsfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ pipeline {
161161
echo "JAVA_HOME = ${JAVA_HOME}"
162162
sh "which java"
163163
sh "java -version"
164-
sh 'SONAR_BRANCH=$(echo $GIT_BRANCH | awk -F/ \'{ print $2 }\')'
165164

166165
withSonarQubeEnv('SonarCloud') {
167166
sh """
@@ -170,7 +169,6 @@ pipeline {
170169
echo "sonar.organization=${sonar_org}" >> ${sonarscanner_config_file}
171170
echo "sonar.projectKey=${sonar_project_key}" >> ${sonarscanner_config_file}
172171
echo "sonar.projectVersion=${version_prefix}" >> ${sonarscanner_config_file}
173-
echo 'sonar.branch=$SONAR_BRANCH' >> ${sonarscanner_config_file}
174172
echo "sonar.javascript.lcov.reportPaths=${lcov_report_paths}" >> ${sonarscanner_config_file}
175173
echo "sonar.c.file.suffixes=-" >> ${sonarscanner_config_file}
176174
echo "sonar.cpp.file.suffixes=-" >> ${sonarscanner_config_file}

0 commit comments

Comments
 (0)