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