diff --git a/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java b/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java index 5360718..a71c76d 100644 --- a/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java +++ b/src/main/java/com/github/mc1arke/sonarqube/plugin/server/CommunityBranchSupportDelegate.java @@ -110,6 +110,7 @@ public ComponentDto createBranchComponent(DbSession dbSession, BranchSupport.Com .setExcludeFromPurge(isBranchExcludedFromPurge(projectConfigurationLoader.loadProjectConfiguration(dbSession, branchDto.getProjectUuid()), branchName)) .setKey(branchName) .setIsMain(false)); + branchDto.setProjectUuid(mainComponentBranchDto.getProjectUuid()); dbClient.branchDao().insert(dbSession, branchDto); return componentDto;