Class GitVariableGenerator
- java.lang.Object
-
- com.atlassian.bamboo.plugins.git.v2.AbstractGitExecutor
-
- com.atlassian.bamboo.plugins.git.v2.GitVariableGenerator
-
- All Implemented Interfaces:
VcsVariableGenerator
public class GitVariableGenerator extends AbstractGitExecutor implements VcsVariableGenerator
-
-
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 GitVariableGenerator(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 @Nullable String
getLegacyPrefix()
Provides default prefix for generated variables.@NotNull Map<String,String>
getPlanRepositoryVariables(@NotNull VcsRepositoryData vcsRepositoryData)
Return a map containing name->value mapping of the plan repository format variables.-
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
-
GitVariableGenerator
@Inject public GitVariableGenerator(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
-
-
Method Detail
-
getLegacyPrefix
@Nullable public @Nullable String getLegacyPrefix()
Description copied from interface:VcsVariableGenerator
Provides default prefix for generated variables.- Specified by:
getLegacyPrefix
in interfaceVcsVariableGenerator
-
getPlanRepositoryVariables
@NotNull public @NotNull Map<String,String> getPlanRepositoryVariables(@NotNull @NotNull VcsRepositoryData vcsRepositoryData)
Description copied from interface:VcsVariableGenerator
Return a map containing name->value mapping of the plan repository format variables.Null values will be filtered out so it's safe to put them in the map.
- Specified by:
getPlanRepositoryVariables
in interfaceVcsVariableGenerator
- Parameters:
vcsRepositoryData
- definition of repository to generate variables for- Returns:
- Map with variable substitutions
-
-