Class GitBranchCreator
- java.lang.Object
-
- com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
-
- com.atlassian.bamboo.plugins.git.v2.GitBranchCreator
-
- All Implemented Interfaces:
VcsBranchCreator
public class GitBranchCreator extends AbstractGitExecutor implements VcsBranchCreator
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
buildDirectoryManager, buildLoggingContext, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper
-
-
Constructor Summary
Constructors Constructor Description GitBranchCreator(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
fetchCacheWithRetry, fetchWithRetry, getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSharedCredentialsIdField, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, isUsingSharedCredentials, rethrowOrRemoveDirectory, substituteString
-
-
-
-
Constructor Detail
-
GitBranchCreator
@Inject public GitBranchCreator(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
-
-
Method Detail
-
createBranch
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
Description copied from interface:VcsBranchCreator
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- Specified by:
createBranch
in interfaceVcsBranchCreator
- Throws:
RepositoryException
-
-