Interface VcsBranchCreator

All Known Implementing Classes:
BitbucketCloudBranchCreator, BitbucketServerBranchCreator, GitBranchCreator, SvnBranchCreator

@ExperimentalApi public interface VcsBranchCreator
Class responsible for creating branches in repository. Implementation should be stateless. Used agent-side.
Since:
5.14, 5.14
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    createBranch(@NotNull VcsRepositoryData repositoryData, @NotNull String branchName, @NotNull String vcsRevisionKey, @Nullable String checkoutLocation, @Nullable BuildLogger buildLogger)
    Creates new branch from revision vcsRevisionKey with given branchName.
  • Method Details

    • createBranch

      void createBranch(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String branchName, @NotNull @NotNull String vcsRevisionKey, @Nullable @Nullable String checkoutLocation, @Nullable @Nullable BuildLogger buildLogger) throws RepositoryException
      Creates new branch from revision vcsRevisionKey with given branchName. If code was checked out during job - checkout location will be given If called from something having build context (like task) - build logger may be given for some logs in result
      Throws:
      RepositoryException