|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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, repositoryModuleDescriptor, templateRenderer, textProvider, variableSubstitutionBean |
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 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)
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 |
---|
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 |
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 RepositoryV2
planKey
- lastVcsRevisionKey
-
RepositoryException
@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
@NotNull public java.lang.String retrieveSourceCode(@NotNull BuildContext buildContext, @Nullable java.lang.String vcsRevisionKey) throws RepositoryException
RepositoryV2
retrieveSourceCode
in interface RepositoryV2
vcsRevisionKey
- - may be null if you want latest code
RepositoryException
public boolean isRepositoryDifferent(@NotNull Repository repository)
RepositoryV2
isRepositoryDifferent
in interface RepositoryV2
repository
- to compare against
@NotNull public CvsRepositoryMavenPomAccessor getMavenPomAccessor()
getMavenPomAccessor
in interface MavenPomAccessorCapableRepository
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
prepareConfigObject
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- - @NotNull@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
validate
in interface BuildConfigurationAwarePlugin
validate
in class AbstractRepository
buildConfiguration
- - @NotNull
public 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 nullpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public 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 SelectableAuthenticationRepository
public 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 Repository
getName
in interface DescriptionProvider
getName
in interface NameProvider
public java.lang.String getUrl()
public int getMaxRetries()
QuietPeriodAwareRepository
getMaxRetries
in interface QuietPeriodAwareRepository
@NotNull public java.io.File getSourceCodeDirectory(@NotNull java.lang.String planKey)
getSourceCodeDirectory
in interface RepositoryV2
getSourceCodeDirectory
in class AbstractRepository
planKey
-
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 QuietPeriodAwareRepository
public int getQuietPeriod()
QuietPeriodAwareRepository
getQuietPeriod
in interface QuietPeriodAwareRepository
public java.lang.String getCvsRoot()
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 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 |