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 @Nullable VcsRepositoryIdentifierProperties |
repository |
protected @Nullable 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(@NotNull String repositoryName)
Sets the repository for this task.
|
T |
repository(@NotNull VcsRepositoryIdentifier repositoryIdentifier)
Sets the repository for this task.
|
T |
workingSubdirectory(@Nullable String workingSubdirectory)
Sets the working subdirectory for this task.
|
build, conditions, description, enabled, requirements, toStringprotected boolean defaultRepository
@Nullable protected @Nullable VcsRepositoryIdentifierProperties repository
@Nullable protected @Nullable 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 @NotNull String repositoryName)
public T repository(@NotNull @NotNull VcsRepositoryIdentifier repositoryIdentifier)
public T workingSubdirectory(@Nullable @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 © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.