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

    • Field Detail

      • defaultRepository

        protected boolean defaultRepository
      • workingSubdirectory

        @Nullable
        protected @Nullable java.lang.String workingSubdirectory
    • Constructor Detail

      • BaseVcsTask

        public BaseVcsTask()
    • 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.