remove specific planRepository

This commit is contained in:
Francisco Schulz 2022-11-15 13:18:25 +01:00
parent fa76003983
commit 73bb38f917
2 changed files with 2 additions and 15 deletions

View File

@ -2,7 +2,6 @@ package buildjob;
import com.atlassian.bamboo.specs.api.BambooSpec;
import com.atlassian.bamboo.specs.api.builders.BambooKey;
import com.atlassian.bamboo.specs.api.builders.applink.ApplicationLink;
import com.atlassian.bamboo.specs.api.builders.docker.DockerConfiguration;
import com.atlassian.bamboo.specs.api.builders.permission.PermissionType;
import com.atlassian.bamboo.specs.api.builders.permission.Permissions;
@ -14,7 +13,6 @@ import com.atlassian.bamboo.specs.api.builders.plan.Stage;
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.builders.repository.bitbucket.server.BitbucketServerRepository;
import com.atlassian.bamboo.specs.builders.task.CheckoutItem;
import com.atlassian.bamboo.specs.builders.task.InjectVariablesTask;
import com.atlassian.bamboo.specs.builders.task.ScriptTask;
@ -153,18 +151,7 @@ public class PlanSpec {
"/usr/share/maven/ref/settings.xml")
.volume("/var/run/docker.sock",
"/var/run/docker.sock"))))
// .linkedRepositories("RR / " + SERVICE_NAME)
.planRepositories(new BitbucketServerRepository()
.name("pyinfra")
.server(new ApplicationLink()
.name("bitbucket-server"))
.projectKey("RR")
.repositorySlug(SERVICE_NAME)
.branch("master")
.lfsEnabled(true)
.shallowClonesEnabled(true)
.fetchWholeRepository(false)
.remoteAgentCacheEnabled(false))
.linkedRepositories("RR / " + SERVICE_NAME)
.triggers(new BitbucketServerTrigger())
.planBranchManagement(
new PlanBranchManagement()

View File

@ -9,7 +9,7 @@ import org.junit.Test;
public class PlanSpecTest {
@Test
public void checkYourPlanOffline() throws PropertiesValidationException {
Plan plan = new PlanSpec().createDockerBuildPlan();
Plan plan = new PlanSpec().createBuildPlan();
EntityPropertiesBuilders.build(plan);
}