Class PlanRepositoryLink
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<PlanRepositoryLinkProperties>
com.atlassian.bamboo.specs.api.builders.repository.PlanRepositoryLink
Links repository to a plan. Repositories can be added to plan in two ways: as a link to a global repository or as plan-managed repository definition.
In the first case repository is managed independently from plan and needs to exist before it can be added to plan. Such repository can be used in many plans. On the other hand, plan-managed repository's lifecycle is tied to plan life-cycle. In other words, they are updated (and deleted) whenever plan is updated and can only be used by plan they are linked to.
Plan-managed repository definition can inherit configuration from global repositories.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PlanRepositoryLinkProperties
build()
globalRepository
(@NotNull VcsRepository<?, ?> repositoryDefinition) Specifies a link to existing global repository.static PlanRepositoryLink
linkToGlobalRepository
(@NotNull VcsRepository<?, ?> globalRepository) Specifies a link to existing global repository.static PlanRepositoryLink
linkToGlobalRepository
(@NotNull VcsRepositoryIdentifier globalRepository) Specifies a link to existing global repository.static PlanRepositoryLink
linkToProjectRepository
(@NotNull VcsRepositoryIdentifier projectRepository) Specifies a link to existing project repository.localRepositoryDefinition
(@NotNull VcsRepository<?, ?> repositoryDefinition) Specifies a link to a plan-managed repository.projectRepository
(@NotNull VcsRepository<?, ?> repositoryDefinition) Specifies a link to existing project repository.
-
Constructor Details
-
PlanRepositoryLink
public PlanRepositoryLink()
-
-
Method Details
-
linkToGlobalRepository
public static PlanRepositoryLink linkToGlobalRepository(@NotNull @NotNull VcsRepository<?, ?> globalRepository) Specifies a link to existing global repository. -
linkToGlobalRepository
public static PlanRepositoryLink linkToGlobalRepository(@NotNull @NotNull VcsRepositoryIdentifier globalRepository) Specifies a link to existing global repository. -
linkToProjectRepository
public static PlanRepositoryLink linkToProjectRepository(@NotNull @NotNull VcsRepositoryIdentifier projectRepository) Specifies a link to existing project repository. -
localRepositoryDefinition
public PlanRepositoryLink localRepositoryDefinition(@NotNull @NotNull VcsRepository<?, ?> repositoryDefinition) Specifies a link to a plan-managed repository. Repository is created or updated whenever this plan is saved. -
globalRepository
public PlanRepositoryLink globalRepository(@NotNull @NotNull VcsRepository<?, ?> repositoryDefinition) Specifies a link to existing global repository. Global repository is managed independently from the plan and must exists. -
projectRepository
public PlanRepositoryLink projectRepository(@NotNull @NotNull VcsRepository<?, ?> repositoryDefinition) Specifies a link to existing project repository. Project repository is managed independently from the plan and must exists. -
build
- Specified by:
build
in classEntityPropertiesBuilder<PlanRepositoryLinkProperties>
-