diff --git a/bamboo-specs/bamboo-specs.iml b/bamboo-specs/bamboo-specs.iml index 9d0588475..c6a124a72 100644 --- a/bamboo-specs/bamboo-specs.iml +++ b/bamboo-specs/bamboo-specs.iml @@ -11,22 +11,22 @@ - - - - - - + + + + + + - + - + \ No newline at end of file diff --git a/bamboo-specs/src/main/java/buildjob/PlanSpec.java b/bamboo-specs/src/main/java/buildjob/PlanSpec.java index b500cb1e7..a6d1eb83f 100644 --- a/bamboo-specs/src/main/java/buildjob/PlanSpec.java +++ b/bamboo-specs/src/main/java/buildjob/PlanSpec.java @@ -16,6 +16,7 @@ import com.atlassian.bamboo.specs.api.builders.plan.artifact.Artifact; import com.atlassian.bamboo.specs.api.builders.plan.branches.BranchCleanup; import com.atlassian.bamboo.specs.api.builders.plan.branches.PlanBranchManagement; import com.atlassian.bamboo.specs.api.builders.project.Project; +import com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryIdentifier; import com.atlassian.bamboo.specs.builders.repository.git.GitRepository; import com.atlassian.bamboo.specs.builders.task.*; import com.atlassian.bamboo.specs.builders.trigger.BitbucketServerTrigger; @@ -64,7 +65,7 @@ public class PlanSpec { .jobs(createRelease())) .linkedRepositories("RED / ui") .linkedRepositories("Shared Libraries / common-ui") - .triggers(new BitbucketServerTrigger()) + .triggers(new BitbucketServerTrigger().selectedTriggeringRepositories(new VcsRepositoryIdentifier("RED / ui"))) .planBranchManagement(new PlanBranchManagement().createForVcsBranch().delete(new BranchCleanup().whenInactiveInRepositoryAfterDays(30)).notificationForCommitters()); }