public abstract class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties> extends Task<T,E>
Modifier and Type | Field and Description |
---|---|
protected boolean |
defaultRepository |
protected VcsRepositoryIdentifierProperties |
repository |
protected String |
workingSubdirectory |
conditions, description, requirements, taskEnabled
Constructor and Description |
---|
BaseVcsTask() |
Modifier and Type | Method and Description |
---|---|
T |
defaultRepository()
Sets the repository for this task to plan's default repository.
|
boolean |
equals(Object o) |
int |
hashCode() |
T |
repository(String repositoryName)
Sets the repository for this task.
|
T |
repository(VcsRepositoryIdentifier repositoryIdentifier)
Sets the repository for this task.
|
T |
workingSubdirectory(String workingSubdirectory)
Sets the working subdirectory for this task.
|
build, conditions, description, enabled, requirements, toString
protected boolean defaultRepository
@Nullable protected VcsRepositoryIdentifierProperties repository
@Nullable protected String workingSubdirectory
public T defaultRepository()
Deployment projects don't have a default repository. Because of that, this method can't be used in deployments.
public T repository(@NotNull VcsRepositoryIdentifier repositoryIdentifier)
public T workingSubdirectory(@Nullable String workingSubdirectory)
This method can only be used in deployments. For build plans, the working subdirectory will be extracted from
the checkout location of selected repository
.
public boolean equals(Object o)
equals
in class Task<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
public int hashCode()
hashCode
in class Task<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.