Class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
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<T,E>
- Direct Known Subclasses:
VcsBranchTask
,VcsCommitTask
,VcsPushTask
,VcsTagTask
public abstract class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
extends Task<T,E>
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
protected @Nullable VcsRepositoryIdentifierProperties
protected @Nullable String
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the repository for this task to plan's default repository.boolean
int
hashCode()
repository
(@NotNull VcsRepositoryIdentifier repositoryIdentifier) Sets the repository for this task.repository
(@NotNull String repositoryName) Sets the repository for this task.workingSubdirectory
(@Nullable String workingSubdirectory) Sets the working subdirectory for this task.Methods inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
build, conditions, description, enabled, requirements, toString
-
Field Details
-
defaultRepository
protected boolean defaultRepository -
repository
-
workingSubdirectory
-
-
Constructor Details
-
BaseVcsTask
public BaseVcsTask()
-
-
Method Details
-
defaultRepository
Sets the repository for this task to plan's default repository. Default repository is the repository which is the first on the list of plan's repositories.Deployment projects don't have a default repository. Because of that, this method can't be used in deployments.
-
repository
Sets the repository for this task. -
repository
Sets the repository for this task. -
workingSubdirectory
Sets the working subdirectory for this task.This method can only be used in deployments. For build plans, the working subdirectory will be extracted from the checkout location of selected
repository
. -
equals
- Overrides:
equals
in classTask<T extends BaseVcsTask<T,
E>, E extends BaseVcsTaskProperties>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classTask<T extends BaseVcsTask<T,
E>, E extends BaseVcsTaskProperties>
-