public class GitBranchCreator extends AbstractGitExecutor implements VcsBranchCreator
buildDirectoryManager, buildLoggingContext, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper
Constructor and Description |
---|
GitBranchCreator(CapabilityContext capabilityContext,
CredentialsAccessor credentialsAccessor,
CustomVariableContext customVariableContext,
BuildDirectoryManager buildDirectoryManager,
com.atlassian.sal.api.message.I18nResolver i18nResolver,
TrustedKeyHelper trustedKeyHelper,
SshProxyService sshProxyService,
BuildLoggingContext buildLoggingContext) |
Modifier and Type | Method and Description |
---|---|
void |
createBranch(VcsRepositoryData repositoryData,
String branchName,
String vcsRevisionKey,
String checkoutLocation,
BuildLogger buildLogger)
Creates new branch from revision vcsRevisionKey with given branchName.
|
fetchCacheWithRetry, fetchWithRetry, getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSharedCredentialsIdField, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, isUsingSharedCredentials, rethrowOrRemoveDirectory, substituteString
@Inject public GitBranchCreator(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
public void createBranch(@NotNull VcsRepositoryData repositoryData, @NotNull String branchName, @NotNull String vcsRevisionKey, @Nullable String checkoutLocation, @Nullable BuildLogger buildLogger) throws RepositoryException
VcsBranchCreator
createBranch
in interface VcsBranchCreator
RepositoryException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.