public abstract class AbstractMercurialExecutor extends Object
Modifier and Type | Field and Description |
---|---|
protected VcsBranchIntegrationHelper |
branchIntegrationHelper |
protected BuildDirectoryManager |
buildDirectoryManager |
protected BuildLoggerManager |
buildLoggerManager |
protected CapabilityContext |
capabilityContext |
protected CredentialsAccessor |
credentialsAccessor |
protected CustomVariableContext |
customVariableContext |
protected com.atlassian.sal.api.message.I18nResolver |
i18nResolver |
protected ScopedExclusionService |
scopedExclusionService |
protected SshProxyService |
sshProxyService |
protected TrustedKeyHelper |
trustedKeyHelper |
Constructor and Description |
---|
AbstractMercurialExecutor() |
Modifier and Type | Method and Description |
---|---|
protected VcsWorkingCopy |
commitLocal(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String commitMessage) |
protected HgRepositoryAccessData |
getAccessData(VcsRepositoryData vcsRepositoryData) |
protected static File |
getCacheBaseDirectory(BuildDirectoryManager buildDirectoryManager) |
protected static File |
getCacheDirectory(File baseDirectory,
String repositoryUrl,
String username) |
protected File |
getCacheDirectory(VcsRepositoryData vcsRepositoryData) |
protected HgRepositoryAccessImpl |
getHgRepoAccess(HgRepositoryAccessData substitutedAccessData,
BuildLogger logger) |
protected HgRepositoryAccessImpl |
getHgRepoAccess(VcsRepositoryData repositoryData,
BuildLogger logger) |
protected int |
getMaxCommitsToReturn() |
List<VcsBranch> |
getOpenBranches(VcsRepositoryData repositoryData) |
protected HgRepositoryAccessData |
getSubstitutedAccessData(VcsRepositoryData vcsRepositoryData)
Returns processed access data: - repositoryUrl/branch/username are substituted - password/sshKey/sshPassphrase
are decrypted - username/password are extracted from repositoryUrl if not set explicitly
|
protected VcsWorkingCopy |
getWorkingCopyInfo(VcsRepositoryData vcsRepositoryData,
File checkoutPath) |
protected File |
getWorkingDirectory() |
protected String |
substituteString(String stringWithValuesToSubstitute) |
protected VcsWorkingCopy |
updateRemote(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String commitMessage) |
protected VcsWorkingCopy |
updateRemoteWithNewBranch(VcsWorkingCopy workingCopy,
VcsRepositoryData vcsRepositoryData,
String branchName) |
@Autowired protected BuildLoggerManager buildLoggerManager
@Autowired protected BuildDirectoryManager buildDirectoryManager
@Autowired protected CustomVariableContext customVariableContext
@Autowired protected com.atlassian.sal.api.message.I18nResolver i18nResolver
@Autowired protected SshProxyService sshProxyService
@Autowired protected ScopedExclusionService scopedExclusionService
@Autowired protected TrustedKeyHelper trustedKeyHelper
@Autowired protected CapabilityContext capabilityContext
@Autowired protected CredentialsAccessor credentialsAccessor
@Autowired protected VcsBranchIntegrationHelper branchIntegrationHelper
protected HgRepositoryAccessImpl getHgRepoAccess(VcsRepositoryData repositoryData, BuildLogger logger) throws RepositoryException
RepositoryException
protected HgRepositoryAccessImpl getHgRepoAccess(HgRepositoryAccessData substitutedAccessData, BuildLogger logger) throws RepositoryException
RepositoryException
protected HgRepositoryAccessData getSubstitutedAccessData(@NotNull VcsRepositoryData vcsRepositoryData)
protected HgRepositoryAccessData getAccessData(VcsRepositoryData vcsRepositoryData)
@NotNull protected File getCacheDirectory(@NotNull VcsRepositoryData vcsRepositoryData)
protected static File getCacheBaseDirectory(BuildDirectoryManager buildDirectoryManager)
protected File getWorkingDirectory()
@NotNull protected static File getCacheDirectory(File baseDirectory, String repositoryUrl, @Nullable String username)
protected int getMaxCommitsToReturn()
@NotNull protected VcsWorkingCopy getWorkingCopyInfo(@NotNull VcsRepositoryData vcsRepositoryData, @NotNull File checkoutPath) throws RepositoryException
RepositoryException
@NotNull protected VcsWorkingCopy commitLocal(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String commitMessage) throws RepositoryException
RepositoryException
@NotNull protected VcsWorkingCopy updateRemote(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String commitMessage) throws RepositoryException
RepositoryException
@NotNull protected VcsWorkingCopy updateRemoteWithNewBranch(@NotNull VcsWorkingCopy workingCopy, @NotNull VcsRepositoryData vcsRepositoryData, @NotNull String branchName) throws RepositoryException
RepositoryException
@NotNull public List<VcsBranch> getOpenBranches(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
RepositoryException
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.