diff --git a/src/test/java/org/jenkinsci/plugins/sonargerrit/sonar/pull_request_analysis/PullRequestAnalysisTest.java b/src/test/java/org/jenkinsci/plugins/sonargerrit/sonar/pull_request_analysis/PullRequestAnalysisTest.java index 3524366..06e6acc 100644 --- a/src/test/java/org/jenkinsci/plugins/sonargerrit/sonar/pull_request_analysis/PullRequestAnalysisTest.java +++ b/src/test/java/org/jenkinsci/plugins/sonargerrit/sonar/pull_request_analysis/PullRequestAnalysisTest.java @@ -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}";