Class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>

Direct Known Subclasses:
VcsBranchTask, VcsCommitTask, VcsPushTask, VcsTagTask

public abstract class BaseVcsTask<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties> extends Task<T,E>
  • Field Details

    • defaultRepository

      protected boolean defaultRepository
    • repository

      @Nullable protected @Nullable VcsRepositoryIdentifierProperties repository
    • workingSubdirectory

      @Nullable protected @Nullable String workingSubdirectory
  • Constructor Details

    • BaseVcsTask

      public BaseVcsTask()
  • Method Details

    • 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 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 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(Object o)
      Overrides:
      equals in class Task<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Task<T extends BaseVcsTask<T,E>,E extends BaseVcsTaskProperties>