diff options
author | Wojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com> | 2023-10-11 14:20:13 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-10-20 20:02:39 +0000 |
commit | 4670e9985e7b7bedf952c99a498a3a1c13912dd0 (patch) | |
tree | 6bc0c337fce2667fba8db9d2cf828d4a79b9978d /server/sonar-webserver-core/src/main | |
parent | da75e87d29efe342fa2761def532f0ea94f71cd1 (diff) | |
download | sonarqube-4670e9985e7b7bedf952c99a498a3a1c13912dd0.tar.gz sonarqube-4670e9985e7b7bedf952c99a498a3a1c13912dd0.zip |
SONAR-20699 Send DevOps platform information for GitHub from the scanner.
Diffstat (limited to 'server/sonar-webserver-core/src/main')
-rw-r--r-- | server/sonar-webserver-core/src/main/java/org/sonar/server/issue/index/AsyncIssueIndexingImpl.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-webserver-core/src/main/java/org/sonar/server/issue/index/AsyncIssueIndexingImpl.java b/server/sonar-webserver-core/src/main/java/org/sonar/server/issue/index/AsyncIssueIndexingImpl.java index 34a9bf0ea3a..e67125f7445 100644 --- a/server/sonar-webserver-core/src/main/java/org/sonar/server/issue/index/AsyncIssueIndexingImpl.java +++ b/server/sonar-webserver-core/src/main/java/org/sonar/server/issue/index/AsyncIssueIndexingImpl.java @@ -32,6 +32,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.sonar.ce.queue.CeQueue; import org.sonar.ce.queue.CeTaskSubmit; +import org.sonar.core.ce.CeTaskCharacteristics; import org.sonar.db.DbClient; import org.sonar.db.DbSession; import org.sonar.db.ce.CeActivityDto; @@ -41,9 +42,8 @@ import org.sonar.db.component.BranchType; import org.sonar.db.component.SnapshotDto; import static java.util.stream.Collectors.toCollection; -import static org.sonar.db.ce.CeTaskCharacteristicDto.BRANCH_KEY; -import static org.sonar.db.ce.CeTaskCharacteristicDto.BRANCH_TYPE_KEY; -import static org.sonar.db.ce.CeTaskCharacteristicDto.PULL_REQUEST; +import static org.sonar.core.ce.CeTaskCharacteristics.BRANCH_TYPE; +import static org.sonar.core.ce.CeTaskCharacteristics.PULL_REQUEST; import static org.sonar.db.ce.CeTaskTypes.BRANCH_ISSUE_SYNC; public class AsyncIssueIndexingImpl implements AsyncIssueIndexing { @@ -181,8 +181,8 @@ public class AsyncIssueIndexingImpl implements AsyncIssueIndexing { private CeTaskSubmit buildTaskSubmit(BranchDto branch) { Map<String, String> characteristics = new HashMap<>(); - characteristics.put(branch.getBranchType() == BranchType.BRANCH ? BRANCH_KEY : PULL_REQUEST, branch.getKey()); - characteristics.put(BRANCH_TYPE_KEY, branch.getBranchType().name()); + characteristics.put(branch.getBranchType() == BranchType.BRANCH ? CeTaskCharacteristics.BRANCH : PULL_REQUEST, branch.getKey()); + characteristics.put(BRANCH_TYPE, branch.getBranchType().name()); return ceQueue.prepareSubmit() .setType(BRANCH_ISSUE_SYNC) |