public class PlanRepositoryLink extends EntityPropertiesBuilder<PlanRepositoryLinkProperties>
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 and Description |
---|
PlanRepositoryLink() |
Modifier and Type | Method and Description |
---|---|
protected PlanRepositoryLinkProperties |
build() |
PlanRepositoryLink |
globalRepository(VcsRepository<?,?> repositoryDefinition)
Specifies a link to existing global repository.
|
static PlanRepositoryLink |
linkToGlobalRepository(VcsRepository<?,?> globalRepository)
Specifies a link to existing global repository.
|
static PlanRepositoryLink |
linkToGlobalRepository(VcsRepositoryIdentifier globalRepository)
Specifies a link to existing global repository.
|
PlanRepositoryLink |
localRepositoryDefinition(VcsRepository<?,?> repositoryDefinition)
Specifies a link to a plan-managed repository.
|
public static PlanRepositoryLink linkToGlobalRepository(@NotNull VcsRepository<?,?> globalRepository)
public static PlanRepositoryLink linkToGlobalRepository(@NotNull VcsRepositoryIdentifier globalRepository)
public PlanRepositoryLink localRepositoryDefinition(@NotNull VcsRepository<?,?> repositoryDefinition)
public PlanRepositoryLink globalRepository(@NotNull VcsRepository<?,?> repositoryDefinition)
protected PlanRepositoryLinkProperties build()
build
in class EntityPropertiesBuilder<PlanRepositoryLinkProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.