Class VcsRepositoryBranch
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<VcsRepositoryBranchProperties>
com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryBranch
Defines a branch a repository should be switched to.
-
Constructor Summary
ConstructorsConstructorDescriptionVcsRepositoryBranch
(@NotNull String repositoryName, @NotNull String branchName) Defines a branch a repository should be switched to. -
Method Summary
Modifier and TypeMethodDescriptionbranchDisplayName
(@NotNull String branchDisplayName) Specifies display name for the branch.branchName
(@NotNull String branchName) Specifies a branch.protected VcsRepositoryBranchProperties
build()
-
Constructor Details
-
VcsRepositoryBranch
public VcsRepositoryBranch(@NotNull @NotNull String repositoryName, @NotNull @NotNull String branchName) Defines a branch a repository should be switched to. The repository has to be connected to the plan: seePlan.linkedRepositories(String...)
andPlan.planRepositories(VcsRepository[])
- Parameters:
repositoryName
- name of the repositorybranchName
- name of the branch
-
-
Method Details
-
branchName
Specifies a branch. -
branchDisplayName
Specifies display name for the branch. By default, it is equal to the branch name and does not need to be specified.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.
-
build
- Specified by:
build
in classEntityPropertiesBuilder<VcsRepositoryBranchProperties>
- Throws:
PropertiesValidationException
-