Class VcsBranchTask
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<P>
-
- com.atlassian.bamboo.specs.api.builders.task.Task<T,E>
-
- com.atlassian.bamboo.specs.builders.task.BaseVcsTask<VcsBranchTask,VcsBranchTaskProperties>
-
- com.atlassian.bamboo.specs.builders.task.VcsBranchTask
-
public class VcsBranchTask extends BaseVcsTask<VcsBranchTask,VcsBranchTaskProperties>
Task which creates a new branch in a repository. For DVCS repositories (which distinguish between local and remote commits) this task will push the newly created branch to the remote repository.
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.specs.builders.task.BaseVcsTask
defaultRepository, repository, workingSubdirectory
-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description VcsBranchTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VcsBranchTaskbranchName(@NotNull java.lang.String branchName)Sets the name of the branch to create.protected @NotNull VcsBranchTaskPropertiesbuild()booleanequals(java.lang.Object o)inthashCode()-
Methods inherited from class com.atlassian.bamboo.specs.builders.task.BaseVcsTask
defaultRepository, repository, repository, workingSubdirectory
-
Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, enabled, requirements, toString
-
-
-
-
Method Detail
-
branchName
public VcsBranchTask branchName(@NotNull @NotNull java.lang.String branchName)
Sets the name of the branch to create.
-
build
@NotNull protected @NotNull VcsBranchTaskProperties build()
- Specified by:
buildin classTask<VcsBranchTask,VcsBranchTaskProperties>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classBaseVcsTask<VcsBranchTask,VcsBranchTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classBaseVcsTask<VcsBranchTask,VcsBranchTaskProperties>
-
-