From 96c404d407924e410b62268784c2a56641fd2580 Mon Sep 17 00:00:00 2001 From: Timo Bejan Date: Mon, 2 Aug 2021 14:50:32 +0200 Subject: [PATCH] PlanSpec.java edited online with Bitbucket --- bamboo-specs/src/main/java/buildjob/PlanSpec.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bamboo-specs/src/main/java/buildjob/PlanSpec.java b/bamboo-specs/src/main/java/buildjob/PlanSpec.java index bfe825371..c3deb9cfd 100644 --- a/bamboo-specs/src/main/java/buildjob/PlanSpec.java +++ b/bamboo-specs/src/main/java/buildjob/PlanSpec.java @@ -43,7 +43,7 @@ public class PlanSpec { Permissions permission = new Permissions() .userPermissions("atlbamboo", PermissionType.EDIT, PermissionType.VIEW, PermissionType.ADMIN, PermissionType.CLONE, PermissionType.BUILD) .userPermissions("tbejan", PermissionType.ADMIN, PermissionType.EDIT, PermissionType.VIEW, PermissionType.CLONE, PermissionType.BUILD) - .groupPermissions("red-ui", PermissionType.EDIT, PermissionType.VIEW, PermissionType.BUILD) + .groupPermissions("devplant", PermissionType.EDIT, PermissionType.VIEW, PermissionType.BUILD) .loggedInUserPermissions(PermissionType.VIEW).anonymousUserPermissionView(); return new PlanPermissions(planIdentifier.getProjectKey(), planIdentifier.getPlanKey()).permissions(permission); } @@ -60,6 +60,7 @@ public class PlanSpec { .manual(true) .jobs(createRelease())) .linkedRepositories("RED / ui") + .linkedRepositories("Shared Libraries / common-ui") .triggers(new BitbucketServerTrigger()) .planBranchManagement(new PlanBranchManagement().createForVcsBranch().delete(new BranchCleanup().whenInactiveInRepositoryAfterDays(30)).notificationForCommitters()); } @@ -69,8 +70,11 @@ public class PlanSpec { .tasks( new CleanWorkingDirectoryTask().description("My clean working directory task"), // Checkout + new VcsCheckoutTask().description("Checkout UI Shared Lib") + .checkoutItems(new CheckoutItem().repository("Shared Libraries / common-ui")), new VcsCheckoutTask().description("Checkout Default Repository") .checkoutItems(new CheckoutItem().defaultRepository()), + // Build new ScriptTask().description("Build") .location(ScriptTaskProperties.Location.FILE) @@ -117,3 +121,4 @@ public class PlanSpec { } +