Class GitTagCreator
java.lang.Object
com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
com.atlassian.bamboo.plugins.git.v2.GitTagCreator
- All Implemented Interfaces:
VcsTagCreator
-
Field Summary
Fields inherited from class com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
buildDirectoryManager, buildLoggingContext, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper -
Constructor Summary
ConstructorsConstructorDescriptionGitTagCreator(CapabilityContext capabilityContext, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext, GitConfigurationProvider gitConfigurationProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateTag(@NotNull VcsRepositoryData repositoryData, @NotNull String tagName, @NotNull String vcsRevisionKey, @Nullable String checkoutLocation, @Nullable BuildLogger buildLogger) Creates new tag from revision vcsRevisionKey with given tagName.Methods inherited from class com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
cacheRootDirectoryExists, fetchCacheWithRetry, fetchWithRetry, getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, rethrowOrRemoveDirectory, substituteString
-
Constructor Details
-
GitTagCreator
@Inject public GitTagCreator(CapabilityContext capabilityContext, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext, GitConfigurationProvider gitConfigurationProvider)
-
-
Method Details
-
createTag
public void createTag(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String tagName, @NotNull @NotNull String vcsRevisionKey, @Nullable @Nullable String checkoutLocation, @Nullable @Nullable BuildLogger buildLogger) throws RepositoryException Description copied from interface:VcsTagCreatorCreates new tag from revision vcsRevisionKey with given tagName. 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:
createTagin interfaceVcsTagCreator- Throws:
RepositoryException
-