diff --git a/gradle.properties b/gradle.properties index ee0164bab..15ee59489 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -version=1.8.1-paypay +version=1.8.2-paypay diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java index cf136fe23..3cbddc10e 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/ce/pullrequest/PullRequestPostAnalysisTask.java @@ -94,8 +94,8 @@ public void finished(Context context) { ProjectAlmSettingDto projectAlmSettingDto = new ProjectAlmSettingDto(); Optional optionalAlmSettingDto; try (DbSession dbSession = dbClient.openSession(false)) { - - projectAlmSettingDto.setAlmRepo("Pay-Baymax/" + projectAnalysis.getProject().getKey()); + projectAlmSettingDto.setAlmRepo(projectAnalysis.getScannerContext().getProperties().getOrDefault( + "sonar.pullrequest.github.repository", "Pay-Baymax/" + projectAnalysis.getProject().getKey())); projectAlmSettingDto.setAlmSettingUuid("AXxy3BubdvWBwkcdvIfk"); projectAlmSettingDto.setAlmSlug(""); projectAlmSettingDto.setProjectUuid(projectAnalysis.getProject().getUuid());