public class VcsRepositoryBranch extends EntityPropertiesBuilder<VcsRepositoryBranchProperties>
Constructor and Description |
---|
VcsRepositoryBranch(String repositoryName,
String branchName)
Defines a branch a repository should be switched to.
|
Modifier and Type | Method and Description |
---|---|
VcsRepositoryBranch |
branchDisplayName(String branchDisplayName)
Specifies display name for the branch.
|
VcsRepositoryBranch |
branchName(String branchName)
Specifies a branch.
|
protected VcsRepositoryBranchProperties |
build() |
public VcsRepositoryBranch(@NotNull String repositoryName, @NotNull String branchName)
Plan.linkedRepositories(String...)
and Plan.planRepositories(VcsRepository[])
repositoryName
- name of the repositorybranchName
- name of the branchpublic VcsRepositoryBranch branchName(@NotNull String branchName)
public VcsRepositoryBranch branchDisplayName(@NotNull String branchDisplayName)
Some vcs configurations can result in branch name being relatively long. For instance, in case of Subversion, branch name contains a relative path of the branch. In such cases showing full branch name in the UI is not practical, hence the separate parameter for the display name.
protected VcsRepositoryBranchProperties build() throws PropertiesValidationException
build
in class EntityPropertiesBuilder<VcsRepositoryBranchProperties>
PropertiesValidationException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.