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
Fields Modifier and Type Field Description protected booleandefaultRepositoryprotected @Nullable VcsRepositoryIdentifierPropertiesrepositoryprotected @Nullable java.lang.StringworkingSubdirectory-
Fields inherited from class com.atlassian.bamboo.specs.api.builders.task.Task
conditions, description, requirements, taskEnabled
-
-
Constructor Summary
Constructors Constructor Description BaseVcsTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TdefaultRepository()Sets the repository for this task to plan's default repository.booleanequals(java.lang.Object o)inthashCode()Trepository(@NotNull VcsRepositoryIdentifier repositoryIdentifier)Sets the repository for this task.Trepository(@NotNull java.lang.String repositoryName)Sets the repository for this task.TworkingSubdirectory(@Nullable java.lang.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 Detail
-
defaultRepository
protected boolean defaultRepository
-
repository
@Nullable protected @Nullable VcsRepositoryIdentifierProperties repository
-
workingSubdirectory
@Nullable protected @Nullable java.lang.String workingSubdirectory
-
-
Method Detail
-
defaultRepository
public T 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
public T repository(@NotNull @NotNull java.lang.String repositoryName)
Sets the repository for this task.
-
repository
public T repository(@NotNull @NotNull VcsRepositoryIdentifier repositoryIdentifier)
Sets the repository for this task.
-
workingSubdirectory
public T workingSubdirectory(@Nullable @Nullable java.lang.String 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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
-
-