|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.repository.AbstractRepository
com.atlassian.bamboo.repository.AbstractStandaloneRepository
com.atlassian.bamboo.plugins.git.GitHubRepository
public class GitHubRepository
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.bamboo.repository.CachingAwareRepository |
|---|
CachingAwareRepository.CachableOperation |
| Field Summary |
|---|
| Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
|---|
administrationConfigurationManager, BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, customVariableContext, featureManager, REPO_PREFIX, repositoryModuleDescriptor, templateRenderer, textProvider |
| Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin |
|---|
moduleDescriptor |
| Fields inherited from interface com.atlassian.bamboo.repository.Repository |
|---|
SELECTED_REPOSITORY, UNKNOWN_HOST |
| Fields inherited from interface com.atlassian.bamboo.plugins.git.GitRepositoryFacade |
|---|
GIT_REPOSITORIES_OF_PLAN |
| Fields inherited from interface com.atlassian.bamboo.repository.IncludeExcludeAwareRepository |
|---|
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX |
| Fields inherited from interface com.atlassian.bamboo.repository.FilterChangesetAwareRepository |
|---|
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN |
| Constructor Summary | |
|---|---|
GitHubRepository()
|
|
| Method Summary | |
|---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Extension point for adding default values to the form for RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
BuildRepositoryChanges |
collectChangesForRevision(PlanKey planKey,
java.lang.String targetRevision)
Collects the changes for the targetRevision. |
BuildRepositoryChanges |
collectChangesSinceLastBuild(java.lang.String planKey,
java.lang.String lastVcsRevisionKey)
Collects the changes since the lastVcsRevisionKey. |
java.lang.String |
commit(java.io.File file,
java.lang.String s)
Perform a commit (dvcs commit). |
GitHubRepositoryAccessData |
getAccessData()
|
java.lang.String |
getBranch()
|
CacheId |
getCacheId(CachingAwareRepository.CachableOperation cachableOperation)
Cache id has to fulfill the following: Given two Repository objects A and B, returning equal CacheId (in terms of equals()) and a cachable operation foo(), in the following sequence of calls made in a short time period: 1. |
int |
getCommandTimeout()
|
java.lang.String |
getEncryptedPassword()
|
CommitContext |
getFirstCommit()
Retrieve the commit that created the Branch. |
GitRepository |
getGitRepository()
|
java.lang.String |
getHost()
What's the repository server host |
CommitContext |
getLastCommit()
Retrieve last commit on the branch set on this Repository. |
java.lang.String |
getName()
The display name for the repository type |
java.util.List<VcsBranch> |
getOpenBranches()
Deprecated. |
java.util.List<VcsBranch> |
getOpenBranches(java.lang.String context)
Set of open branches that are discovered in the repository. |
java.lang.String |
getOptionDescription()
|
java.lang.String |
getRepository()
|
java.lang.String |
getUsername()
|
VcsBranch |
getVcsBranch()
|
boolean |
getVerboseLogs()
|
boolean |
isCachingSupportedFor(CachingAwareRepository.CachableOperation cachableOperation)
|
boolean |
isMergingSupported()
|
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same as the given repository |
boolean |
isUseShallowClones()
|
boolean |
isUseSubmodules()
|
boolean |
mergeWorkspaceWith(BuildContext buildContext,
java.io.File file,
java.lang.String s)
Merges a workspace located in checkout directory with the target revision. |
void |
populateFromConfig(org.apache.commons.configuration.HierarchicalConfiguration config)
Update the current object with data in the HierarchicalConfiguration |
void |
prepareConfigObject(BuildConfiguration buildConfiguration)
Do any preprocessing work before validation occurs. |
void |
pushRevision(java.io.File file,
java.lang.String s)
Push the specified revision to the remote directory. |
java.lang.String |
retrieveSourceCode(BuildContext buildContext,
java.lang.String vcsRevision)
|
java.lang.String |
retrieveSourceCode(BuildContext buildContext,
java.lang.String vcsRevisionKey,
java.io.File sourceDirectory)
Checks out the latest source code from an appropriate repository to specified directory |
java.lang.String |
retrieveSourceCode(BuildContext buildContext,
java.lang.String vcsRevisionKey,
java.io.File sourceDirectory,
int depth)
Checks out the latest source code from an appropriate repository to specified directory |
void |
setAccessData(GitHubRepositoryAccessData gitHubAccessData)
|
void |
setBranchIntegrationHelper(BranchIntegrationHelper branchIntegrationHelper)
|
void |
setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
|
void |
setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
|
void |
setCapabilityContext(CapabilityContext capabilityContext)
|
void |
setCustomVariableContext(CustomVariableContext customVariableContext)
|
void |
setEncryptionService(EncryptionService encryptionService)
|
void |
setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
|
void |
setSshProxyService(SshProxyService sshProxyService)
|
void |
setTemplateRenderer(TemplateRenderer templateRenderer)
|
void |
setVcsBranch(VcsBranch vcsBranch)
Set and prepare the repository for using an arbitrary branch. |
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a HierarchicalConfiguration from the current state of the object |
boolean |
usePollingForBranchDetection()
If Bamboo generic detection polling should be used for this repository |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
| Methods inherited from class com.atlassian.bamboo.repository.AbstractStandaloneRepository |
|---|
getAdvancedEditHtml, getAdvancedViewHtml, getEditHtml, getViewHtml, getViewHtml |
| Methods inherited from class com.atlassian.bamboo.v2.build.BaseConfigurablePlugin |
|---|
customizeBuildRequirements, removeBuildRequirements |
| Methods inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin |
|---|
isConfigurationMissing, populateContextForEdit, populateContextForView |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.atlassian.bamboo.repository.AdvancedConfigurationAwareRepository |
|---|
getAdvancedEditHtml, getAdvancedViewHtml |
| Methods inherited from interface com.atlassian.bamboo.repository.Repository |
|---|
checkConnection, getKey, getLocationIdentifier, getMinimalEditHtml, getShortKey |
| Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2 |
|---|
getSourceCodeDirectory |
| Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin |
|---|
customizeBuildRequirements, removeBuildRequirements |
| Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule |
|---|
init |
| Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration |
|---|
getEditHtml, getViewHtml |
| Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
|---|
getDescription |
| Methods inherited from interface com.atlassian.bamboo.repository.BranchMergingAwareRepository |
|---|
getBranchIntegrationEditHtml |
| Constructor Detail |
|---|
public GitHubRepository()
| Method Detail |
|---|
public void setBuildDirectoryManager(BuildDirectoryManager buildDirectoryManager)
setBuildDirectoryManager in class AbstractRepositorypublic void setBuildLoggerManager(BuildLoggerManager buildLoggerManager)
setBuildLoggerManager in class AbstractRepositorypublic void setI18nResolver(com.atlassian.sal.api.message.I18nResolver i18nResolver)
public void setEncryptionService(EncryptionService encryptionService)
public void setCustomVariableContext(CustomVariableContext customVariableContext)
setCustomVariableContext in class AbstractRepositorypublic void setCapabilityContext(CapabilityContext capabilityContext)
public void setSshProxyService(SshProxyService sshProxyService)
public void setBranchIntegrationHelper(BranchIntegrationHelper branchIntegrationHelper)
public void setTemplateRenderer(TemplateRenderer templateRenderer)
setTemplateRenderer in class AbstractRepository@NotNull public java.lang.String getName()
Repository
getName in interface RepositorygetName in interface DescriptionProvidergetName in interface NameProviderpublic java.lang.String getHost()
Repository
getHost in interface Repository
public boolean isRepositoryDifferent(@NotNull
Repository repository)
RepositoryV2
isRepositoryDifferent in interface RepositoryV2repository - to compare against
public void addDefaultValues(@NotNull
BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginRenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues in interface BuildConfigurationAwarePluginaddDefaultValues in class AbstractRepositorybuildConfiguration - - @NotNull
public void prepareConfigObject(@NotNull
BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
prepareConfigObject in interface BuildConfigurationAwarePluginprepareConfigObject in class BaseBuildConfigurationAwarePluginbuildConfiguration - - @NotNull
public void populateFromConfig(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfigHierarchicalConfiguration
populateFromConfig in interface ConvertibleFromConfigpopulateFromConfig in class AbstractRepository@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfigHierarchicalConfiguration from the current state of the object
toConfiguration in interface ConvertibleFromConfigtoConfiguration in class AbstractRepositoryHierarchicalConfiguration. Never null
@NotNull
public ErrorCollection validate(@NotNull
BuildConfiguration buildConfiguration)
BuildConfigurationAwarePluginBuildConfiguration object. The name of the properties match those passed
in through the form fragments in RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) template.
validate in interface BuildConfigurationAwarePluginvalidate in class AbstractRepositorybuildConfiguration - - @NotNull
ErrorCollection keyed by the field name. @NotNull
@NotNull
public BuildRepositoryChanges collectChangesForRevision(@NotNull
PlanKey planKey,
@NotNull
java.lang.String targetRevision)
throws RepositoryException
OnceOffCapableRepository
collectChangesForRevision in interface OnceOffCapableRepositorycollectChangesForRevision in class AbstractRepositoryRepositoryException - if something goes wrong
@NotNull
public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull
java.lang.String planKey,
@Nullable
java.lang.String lastVcsRevisionKey)
throws RepositoryException
RepositoryV2
collectChangesSinceLastBuild in interface RepositoryV2lastVcsRevisionKey - can be null, if null you should ensure the correct vcsrevisionkey is returned in the BuildChanges object.
RepositoryException - if something goes wrong
@NotNull
public java.lang.String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
java.lang.String vcsRevision)
throws RepositoryException
RepositoryException
@NotNull
public java.lang.String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
java.lang.String vcsRevisionKey,
@NotNull
java.io.File sourceDirectory)
throws RepositoryException
CustomSourceDirectoryAwareRepository
retrieveSourceCode in interface CustomSourceDirectoryAwareRepositoryvcsRevisionKey - - may be null if you want latest codesourceDirectory - - directory to checkout to
RepositoryException
@NotNull
public java.lang.String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
java.lang.String vcsRevisionKey,
@NotNull
java.io.File sourceDirectory,
int depth)
throws RepositoryException
BranchMergingAwareRepository
retrieveSourceCode in interface BranchMergingAwareRepositoryvcsRevisionKey - - may be null if you want latest codesourceDirectory - - directory to checkout todepth - - how many historical revisions we'd like to check out (-1 means all revisions)
RepositoryExceptionpublic java.lang.String getUsername()
public java.lang.String getRepository()
public java.lang.String getBranch()
public boolean isUseShallowClones()
public java.lang.String getEncryptedPassword()
public boolean isUseSubmodules()
public int getCommandTimeout()
public boolean getVerboseLogs()
@NotNull
@Deprecated
public java.util.List<VcsBranch> getOpenBranches()
throws RepositoryException
RepositoryException
@NotNull
public java.util.List<VcsBranch> getOpenBranches(@Nullable
java.lang.String context)
throws RepositoryException
BranchDetectionCapableRepositorySet of open branches that are discovered in the repository. Returns empty collection if no branches at
all (can that happen?). Used for monitoring repositories for new branches.
An open branch is a branch that is considered 'open' by underlying VCS - it has nothing to do with the actual
development on that branch (recent commits or so).
getOpenBranches in interface BranchDetectionCapableRepositoryList of branch names. May be empty.
RepositoryException@NotNull public VcsBranch getVcsBranch()
getVcsBranch in interface BranchAwareRepository
public void setVcsBranch(@NotNull
VcsBranch vcsBranch)
BranchAwareRepository
setVcsBranch in interface BranchAwareRepository
public CacheId getCacheId(@NotNull
CachingAwareRepository.CachableOperation cachableOperation)
CachingAwareRepository
getCacheId in interface CachingAwareRepository
public boolean isCachingSupportedFor(@NotNull
CachingAwareRepository.CachableOperation cachableOperation)
isCachingSupportedFor in interface CachingAwareRepository
public CommitContext getLastCommit()
throws RepositoryException
BranchDetectionCapableRepository
getLastCommit in interface BranchDetectionCapableRepositoryRepositoryException
public CommitContext getFirstCommit()
throws RepositoryException
BranchDetectionCapableRepository
getFirstCommit in interface BranchDetectionCapableRepositoryRepositoryException
public boolean mergeWorkspaceWith(@NotNull
BuildContext buildContext,
@NotNull
java.io.File file,
@NotNull
java.lang.String s)
throws RepositoryException
BranchMergingAwareRepository
mergeWorkspaceWith in interface BranchMergingAwareRepositorybuildContext - the build context of build doing the mergefile - the workspace to use for merges - the revision to merge with
RepositoryExceptionpublic boolean isMergingSupported()
isMergingSupported in interface BranchMergingAwareRepository
public void pushRevision(@NotNull
java.io.File file,
@Nullable
java.lang.String s)
throws RepositoryException
PushCapableRepository
pushRevision in interface PushCapableRepositoryfile - - the working directory of the repository we want to push froms - - the revisionKey (usually a branch name) to push
RepositoryException - - when something goes wrong
@NotNull
public java.lang.String commit(@NotNull
java.io.File file,
@NotNull
java.lang.String s)
throws RepositoryException
PushCapableRepository
commit in interface PushCapableRepositoryfile - - which workspace directory to perform the commits - - what message use for commit
RepositoryException - - when something goes wrongpublic java.lang.String getOptionDescription()
public GitHubRepositoryAccessData getAccessData()
public void setAccessData(GitHubRepositoryAccessData gitHubAccessData)
public GitRepository getGitRepository()
getGitRepository in interface GitRepositoryFacadepublic boolean usePollingForBranchDetection()
BranchInformationProvider
usePollingForBranchDetection in interface BranchInformationProvider
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||