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(@NotNull VcsRepositoryData repositoryData,
@NotNull String branchName,
@NotNull String vcsRevisionKey,
@Nullable String checkoutLocation,
@Nullable 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
@NotNull VcsRepositoryData repositoryData,
@NotNull
@NotNull String branchName,
@NotNull
@NotNull String vcsRevisionKey,
@Nullable
@Nullable String checkoutLocation,
@Nullable
@Nullable BuildLogger buildLogger)
throws RepositoryException
VcsBranchCreatorcreateBranch in interface VcsBranchCreatorRepositoryExceptionCopyright © 2024 Atlassian Software Systems Pty Ltd. All rights reserved.