public class GitVariableGenerator extends AbstractGitExecutor implements VcsVariableGenerator
buildDirectoryManager, buildLoggingContext, customVariableContext, DEFAULT_BRANCH, i18nResolver, sshProxyService, trustedKeyHelper
Constructor and Description |
---|
GitVariableGenerator(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 |
---|---|
String |
getLegacyPrefix()
Provides default prefix for generated variables.
|
Map<String,String> |
getPlanRepositoryVariables(VcsRepositoryData vcsRepositoryData)
Return a map containing name->value mapping of the plan repository format variables.
|
fetchCacheWithRetry, fetchWithRetry, getAccessData, getCacheDirectory, getCachePath, getGitCapability, getSharedCredentialsIdField, getSshCapability, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getWorkingDirectory, isUsingSharedCredentials, rethrowOrRemoveDirectory, substituteString
@Inject public GitVariableGenerator(CapabilityContext capabilityContext, CredentialsAccessor credentialsAccessor, CustomVariableContext customVariableContext, BuildDirectoryManager buildDirectoryManager, com.atlassian.sal.api.message.I18nResolver i18nResolver, TrustedKeyHelper trustedKeyHelper, SshProxyService sshProxyService, BuildLoggingContext buildLoggingContext)
@Nullable public String getLegacyPrefix()
VcsVariableGenerator
getLegacyPrefix
in interface VcsVariableGenerator
@NotNull public Map<String,String> getPlanRepositoryVariables(@NotNull VcsRepositoryData vcsRepositoryData)
VcsVariableGenerator
Null values will be filtered out so it's safe to put them in the map.
getPlanRepositoryVariables
in interface VcsVariableGenerator
vcsRepositoryData
- definition of repository to generate variables forCopyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.