|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.repository.AbstractRepository com.atlassian.bamboo.plugins.hg.HgRepository
public class HgRepository
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
---|
BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, CLEAN_CHECKOUT_PARAM, CLEAN_WORKING_DIRECTORY_PARAM, repositoryModuleDescriptor, templateRenderer, textProvider, variableSubstitutionBean |
Fields inherited from interface com.atlassian.bamboo.repository.Repository |
---|
SELECTED_REPOSITORY, UNKNOWN_HOST |
Fields inherited from interface com.atlassian.bamboo.repository.IncludeExcludeAwareRepository |
---|
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX |
Constructor Summary | |
---|---|
HgRepository()
|
Method Summary | |
---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
Extension point for adding default values to the form for BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan) |
BuildChanges |
collectChangesSinceLastBuild(java.lang.String planKey,
java.lang.String lastVcsRevisionKey)
Collects the changes since the lastVcsRevisionKey |
AuthenticationType |
getAuthenticationType()
|
java.util.List<AuthenticationType> |
getAuthenticationTypes()
|
java.lang.String |
getBranch()
|
java.io.File |
getCacheDirectory()
|
static java.io.File |
getCacheDirectory(java.io.File workingDirectory,
java.lang.String repositoryUrl,
java.lang.String username)
|
int |
getCommandTimeout()
|
java.lang.String |
getHgExeCapability()
|
java.lang.String |
getHost()
What's the repository server host |
java.lang.String |
getLocationIdentifier()
A string representing the location of the repository |
MavenPomAccessor |
getMavenPomAccessor()
|
java.lang.String |
getName()
The display name for the repository type |
java.lang.String |
getPassword()
|
java.net.URI |
getRemoteUri()
|
java.lang.String |
getRepositoryUrl()
|
java.lang.String |
getSshExeCapability()
|
java.lang.String |
getUsername()
|
boolean |
isCleanCacheDirectory()
|
boolean |
isDelayChangesetDetection()
|
boolean |
isHgExecutableSet()
For configuration screens |
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same as the given repository |
boolean |
isVerboseLogs()
|
protected boolean |
isWorkspaceEmpty(java.io.File sourceCodeDirectory)
|
void |
performPostConfiguration(BuildConfiguration buildConfiguration,
Plan plan)
Allows any other configuration to be performed after another repository has been created. |
void |
performPostConfigurationForSelectedRepository(BuildConfiguration buildConfiguration,
Plan plan)
Allows any other configuration to be performed after this repository has been created |
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. |
java.lang.String |
retrieveSourceCode(BuildContext buildContext,
java.lang.String vcsRevision)
Checks out the latest source code to an appropriate repository |
java.lang.String |
retrieveSourceCode(java.lang.String planKey,
java.lang.String vcsRevisionKey)
Checks out the latest source code to an appropriate repository |
void |
setCapabilityContext(CapabilityContext capabilityContext)
|
void |
setPlanManager(PlanManager planManager)
|
void |
setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
|
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a HierarchicalConfiguration from the current state of the object |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Validates the properties in the BuildConfiguration object. |
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.Repository |
---|
checkConnection, getKey, getMinimalEditHtml, getShortKey, getTriggerIpAddress, setReferencesDifferentRepository |
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2 |
---|
getSourceCodeDirectory, referencesDifferentRepository |
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin |
---|
customizeBuildRequirements, removeBuildRequirements |
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin |
---|
getEditHtml, getViewHtml |
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
---|
getDescription |
Constructor Detail |
---|
public HgRepository()
Method Detail |
---|
@NotNull public java.lang.String getName()
Repository
getName
in interface Repository
getName
in interface DescriptionProvider
getName
in interface NameProvider
public java.lang.String getHost()
Repository
getHost
in interface Repository
@NotNull public java.lang.String getLocationIdentifier()
Repository
getLocationIdentifier
in interface Repository
getLocationIdentifier
in class AbstractRepository
public boolean isRepositoryDifferent(@NotNull Repository repository)
RepositoryV2
isRepositoryDifferent
in interface RepositoryV2
repository
- to compare against
public java.io.File getCacheDirectory() throws RepositoryException
RepositoryException
public static java.io.File getCacheDirectory(java.io.File workingDirectory, java.lang.String repositoryUrl, java.lang.String username) throws RepositoryException
RepositoryException
@NotNull public BuildChanges collectChangesSinceLastBuild(@NotNull java.lang.String planKey, @Nullable java.lang.String lastVcsRevisionKey) throws RepositoryException
RepositoryV2
collectChangesSinceLastBuild
in interface RepositoryV2
lastVcsRevisionKey
- - 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
RepositoryV2
retrieveSourceCode
in interface RepositoryV2
vcsRevision
- - may be null if you want latest code
RepositoryException
public void performPostConfiguration(BuildConfiguration buildConfiguration, Plan plan)
PostConfigurableRepository
performPostConfiguration
in interface PostConfigurableRepository
public void performPostConfigurationForSelectedRepository(BuildConfiguration buildConfiguration, Plan plan)
PostConfigurableRepository
performPostConfigurationForSelectedRepository
in interface PostConfigurableRepository
@NotNull public java.lang.String retrieveSourceCode(@NotNull java.lang.String planKey, @Nullable java.lang.String vcsRevisionKey) throws RepositoryException
RepositoryV2
retrieveSourceCode
in interface RepositoryV2
vcsRevisionKey
- - may be null if you want latest code
RepositoryException
public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues
in interface BuildConfigurationAwarePlugin
addDefaultValues
in class AbstractRepository
buildConfiguration
- - @NotNullpublic void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
prepareConfigObject
in interface BuildConfigurationAwarePlugin
buildConfiguration
- - @NotNullpublic void populateFromConfig(@NotNull org.apache.commons.configuration.HierarchicalConfiguration config)
ConvertibleFromConfig
HierarchicalConfiguration
populateFromConfig
in interface ConvertibleFromConfig
populateFromConfig
in class AbstractRepository
@NotNull public org.apache.commons.configuration.HierarchicalConfiguration toConfiguration()
ConvertibleFromConfig
HierarchicalConfiguration
from the current state of the object
toConfiguration
in interface ConvertibleFromConfig
toConfiguration
in class AbstractRepository
HierarchicalConfiguration
. Never null@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
BuildConfiguration
object. The name of the properties match those passed
in through the form fragments in BuildConfigurationAwarePlugin.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
template.
validate
in interface BuildConfigurationAwarePlugin
validate
in class AbstractRepository
buildConfiguration
- - @NotNull
ErrorCollection
keyed by the field name. @NotNull@NotNull public MavenPomAccessor getMavenPomAccessor()
getMavenPomAccessor
in interface MavenPomAccessorCapableRepository
protected boolean isWorkspaceEmpty(java.io.File sourceCodeDirectory)
isWorkspaceEmpty
in class AbstractRepository
public boolean isHgExecutableSet()
@Nullable public java.lang.String getHgExeCapability()
@Nullable public java.lang.String getSshExeCapability()
public java.lang.String getRepositoryUrl()
@Nullable public java.net.URI getRemoteUri()
public java.lang.String getBranch()
public java.lang.String getUsername()
public java.lang.String getPassword()
public int getCommandTimeout()
public boolean isDelayChangesetDetection()
public boolean isCleanCacheDirectory()
public boolean isVerboseLogs()
public void setCapabilityContext(CapabilityContext capabilityContext)
public void setPlanManager(PlanManager planManager)
@NotNull public java.util.List<AuthenticationType> getAuthenticationTypes()
@NotNull public AuthenticationType getAuthenticationType()
public void setTextProvider(com.opensymphony.xwork.TextProvider textProvider)
setTextProvider
in class AbstractRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |