Skip to content

Commit

Permalink
Don't use patchset number with Sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
mtughan committed Sep 5, 2024
1 parent 3be423a commit 4b63ea9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ class PullRequestAnalysisTest {

private static final String MAVEN_FREESTYLE_TARGET =
"clean verify sonar:sonar "
+ "-Dsonar.pullrequest.key=${GERRIT_CHANGE_NUMBER}-${GERRIT_PATCHSET_NUMBER} "
+ "-Dsonar.pullrequest.key=${GERRIT_CHANGE_NUMBER} "
+ "-Dsonar.pullrequest.base=${GERRIT_BRANCH} "
+ "-Dsonar.pullrequest.branch=${GERRIT_REFSPEC}";

private static final String MAVEN_PIPELINE_TARGET =
"clean verify sonar:sonar "
+ "-Dsonar.pullrequest.key=${env.GERRIT_CHANGE_NUMBER}-${env.GERRIT_PATCHSET_NUMBER} "
+ "-Dsonar.pullrequest.key=${env.GERRIT_CHANGE_NUMBER} "
+ "-Dsonar.pullrequest.base=${env.GERRIT_BRANCH} "
+ "-Dsonar.pullrequest.branch=${env.GERRIT_REFSPEC}";

Expand Down

0 comments on commit 4b63ea9

Please sign in to comment.