|
||||||||||
| 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.cvsimpl.CVSRepository
public class CVSRepository
This class provides a CVS implemention of the Repository interface.
| Nested Class Summary | |
|---|---|
static class |
CVSRepository.SymbolicNameType
|
| Field Summary | |
|---|---|
static java.lang.String |
BUILD_MODULE_BRANCH
|
static java.lang.String |
BUILD_MODULE_TRUNK
|
static java.lang.String |
COMPLETE_PLUGIN_KEY
|
static java.lang.String |
CVS_AUTH_TYPE
|
static java.lang.String |
CVS_BRANCH
|
static java.lang.String |
CVS_KEY_FILE
|
static java.lang.String |
CVS_LAST_UPDATE
|
static java.lang.String |
CVS_MODULE
|
static java.lang.String |
CVS_PASSPHRASE
|
static java.lang.String |
CVS_PASSWORD
|
static java.lang.String |
CVS_QUIET_PERIOD
|
static java.lang.String |
CVS_ROOT
|
static java.lang.String |
CVS_VERSION_TYPE
|
CvsRepositoryManager |
cvsRepositoryManager
|
static java.lang.String |
DATE_FORMAT
|
static org.apache.commons.lang.time.FastDateFormat |
DEFAULT_LOG_DATE_FORMAT
|
static java.lang.String |
KEY
|
static java.lang.String |
NAME
|
static java.lang.String |
TEMPORARY_CVS_PASSWORD
|
| Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository |
|---|
BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, CLEAN_CHECKOUT_PARAM, CLEAN_WORKING_DIRECTORY_PARAM, customVariableContext, 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.repository.IncludeExcludeAwareRepository |
|---|
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX |
| Constructor Summary | |
|---|---|
CVSRepository()
|
|
| 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) |
BuildChanges |
collectChangesSinceLastBuild(java.lang.String planKey,
java.lang.String lastVcsRevisionKey)
Gets the code since the link |
int |
compareTo(java.lang.Object obj)
|
boolean |
equals(java.lang.Object o)
|
java.util.List<NameValuePair> |
getAuthenticationTypes()
List all authentication types supported by repository. |
java.lang.String |
getAuthType()
|
java.lang.String |
getBranchName()
Returns branch name exactly as configured in the UI. |
java.lang.String |
getCvsRoot()
|
protected java.lang.String |
getDecryptedPassphrase()
|
java.lang.String |
getEncryptedPassword()
|
java.lang.String |
getHost()
What's the repository server host |
java.lang.String |
getKeyFile()
|
java.lang.String |
getLocationIdentifier()
A string representing the location of the repository |
java.text.Format |
getLogDateFormat()
|
CvsRepositoryMavenPomAccessor |
getMavenPomAccessor()
|
int |
getMaxRetries()
Returns the maximum number of times to collect changes |
java.lang.String |
getModule()
|
java.lang.String |
getName()
The display name for the repository type |
protected java.lang.String |
getPassphrase()
|
java.lang.String |
getPassword()
|
int |
getQuietPeriod()
Returns the number of seconds to wait between each retry |
java.io.File |
getSourceCodeDirectory(java.lang.String planKey)
CVS checks out the source into the a subdirectory (named after the build) in the working directory |
java.lang.String |
getSubstitutedBranchName()
Returns branch name with all the variables extrapolated with current values. |
java.lang.String |
getSubstitutedCvsRoot()
|
java.lang.String |
getSubstitutedKeyFile()
|
CVSRepository.SymbolicNameType |
getSymbolicNameType()
|
java.lang.String |
getUrl()
|
java.util.Collection<NameValuePair> |
getVersionTypes()
|
int |
hashCode()
|
boolean |
isQuietPeriodEnabled()
Returns true if we were to enable the quiet period |
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same as the given repository |
boolean |
isSshAuthType()
|
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 vcsRevisionKey)
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 |
protected void |
setAuthType(java.lang.String authType)
|
void |
setBranchName(java.lang.String branchName)
|
void |
setCvsRepositoryManager(CvsRepositoryManager cvsRepositoryManager)
|
void |
setCvsRoot(java.lang.String cvsRoot)
|
void |
setEncryptedPassword(java.lang.String encryptedPassword)
|
void |
setLogDateFormat(org.apache.commons.lang.time.FastDateFormat logDateFormat)
|
void |
setModule(java.lang.String moduleName)
|
void |
setPassword(java.lang.String password)
|
void |
setQuietPeriod(int i)
|
void |
setQuietPeriod(java.lang.String quietPeriod)
Defines the quiet period for this build (in seconds) |
org.apache.commons.configuration.HierarchicalConfiguration |
toConfiguration()
Generate a HierarchicalConfiguration from the current state of the object |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
Ensure we have the been initialised with the mandatory settings This is called from the build form. |
| 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, finalize, getClass, 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.RenderableBuildConfiguration |
|---|
getEditHtml, getViewHtml |
| Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider |
|---|
getDescription |
| Field Detail |
|---|
public static final java.lang.String DATE_FORMAT
public static final org.apache.commons.lang.time.FastDateFormat DEFAULT_LOG_DATE_FORMAT
public static final java.lang.String NAME
public static final java.lang.String KEY
public static final java.lang.String COMPLETE_PLUGIN_KEY
public static final java.lang.String CVS_VERSION_TYPE
public static final java.lang.String BUILD_MODULE_TRUNK
public static final java.lang.String BUILD_MODULE_BRANCH
public static final java.lang.String CVS_ROOT
public static final java.lang.String CVS_PASSWORD
public static final java.lang.String CVS_QUIET_PERIOD
public static final java.lang.String CVS_MODULE
public static final java.lang.String CVS_BRANCH
public static final java.lang.String CVS_AUTH_TYPE
public static final java.lang.String CVS_KEY_FILE
public static final java.lang.String CVS_PASSPHRASE
public static final java.lang.String CVS_LAST_UPDATE
public static final java.lang.String TEMPORARY_CVS_PASSWORD
public transient CvsRepositoryManager cvsRepositoryManager
| Constructor Detail |
|---|
public CVSRepository()
| Method Detail |
|---|
@NotNull
public BuildChanges collectChangesSinceLastBuild(@NotNull
java.lang.String planKey,
@Nullable
java.lang.String lastVcsRevisionKey)
throws RepositoryException
collectChangesSinceLastBuild in interface RepositoryV2planKey - lastVcsRevisionKey -
RepositoryException
@NotNull
public java.lang.String retrieveSourceCode(@NotNull
java.lang.String planKey,
@Nullable
java.lang.String vcsRevisionKey)
throws RepositoryException
RepositoryV2
retrieveSourceCode in interface RepositoryV2vcsRevisionKey - - may be null if you want latest code
RepositoryException
@NotNull
public java.lang.String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
java.lang.String vcsRevisionKey)
throws RepositoryException
RepositoryV2
retrieveSourceCode in interface RepositoryV2vcsRevisionKey - - may be null if you want latest code
RepositoryException
public boolean isRepositoryDifferent(@NotNull
Repository repository)
RepositoryV2
isRepositoryDifferent in interface RepositoryV2repository - to compare against
@NotNull public CvsRepositoryMavenPomAccessor getMavenPomAccessor()
getMavenPomAccessor in interface MavenPomAccessorCapableRepository
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
@NotNull
public ErrorCollection validate(@NotNull
BuildConfiguration buildConfiguration)
validate in interface BuildConfigurationAwarePluginvalidate in class AbstractRepositorybuildConfiguration - - @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 nullpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object obj)
public java.lang.String getKeyFile()
public java.lang.String getSubstitutedKeyFile()
protected java.lang.String getPassphrase()
public java.lang.String getAuthType()
getAuthType in interface SelectableAuthenticationRepositorypublic java.lang.String getEncryptedPassword()
public void setEncryptedPassword(java.lang.String encryptedPassword)
protected void setAuthType(java.lang.String authType)
@NotNull public java.lang.String getName()
Repository
getName in interface RepositorygetName in interface DescriptionProvidergetName in interface NameProviderpublic java.lang.String getUrl()
public int getMaxRetries()
QuietPeriodAwareRepository
getMaxRetries in interface QuietPeriodAwareRepositorygetMaxRetries in class AbstractRepository
@NotNull
public java.io.File getSourceCodeDirectory(@NotNull
java.lang.String planKey)
getSourceCodeDirectory in interface RepositoryV2getSourceCodeDirectory in class AbstractRepositoryplanKey -
public java.lang.String getModule()
public void setModule(java.lang.String moduleName)
public java.lang.String getBranchName()
getSubstitutedBranchName() should be used.
public java.lang.String getSubstitutedBranchName()
public void setBranchName(java.lang.String branchName)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public void setQuietPeriod(java.lang.String quietPeriod)
quietPeriod - the number of seconds to wait for more checkinspublic void setQuietPeriod(int i)
public boolean isQuietPeriodEnabled()
QuietPeriodAwareRepository
isQuietPeriodEnabled in interface QuietPeriodAwareRepositoryisQuietPeriodEnabled in class AbstractRepositorypublic int getQuietPeriod()
QuietPeriodAwareRepository
getQuietPeriod in interface QuietPeriodAwareRepositorygetQuietPeriod in class AbstractRepositorypublic java.lang.String getCvsRoot()
public java.lang.String getHost()
Repository
getHost in interface Repository@NotNull public java.lang.String getLocationIdentifier()
Repository
getLocationIdentifier in interface RepositorygetLocationIdentifier in class AbstractRepositorypublic java.lang.String getSubstitutedCvsRoot()
public void setCvsRoot(java.lang.String cvsRoot)
public boolean isSshAuthType()
public void setCvsRepositoryManager(CvsRepositoryManager cvsRepositoryManager)
protected java.lang.String getDecryptedPassphrase()
@NotNull public java.util.List<NameValuePair> getAuthenticationTypes()
SelectableAuthenticationRepository
getAuthenticationTypes in interface SelectableAuthenticationRepository@NotNull public java.util.Collection<NameValuePair> getVersionTypes()
public java.text.Format getLogDateFormat()
public void setLogDateFormat(org.apache.commons.lang.time.FastDateFormat logDateFormat)
public CVSRepository.SymbolicNameType getSymbolicNameType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||