public class CVSRepository extends AbstractStandaloneRepository implements LegacyRepository, SelectableAuthenticationRepository, QuietPeriodAwareRepository, MavenPomAccessorCapableRepository
Repository
interface.Modifier and Type | Class and Description |
---|---|
static class |
CVSRepository.SymbolicNameType |
Modifier and Type | Field and Description |
---|---|
static String |
BUILD_MODULE_BRANCH |
static String |
BUILD_MODULE_TRUNK |
static String |
COMPLETE_PLUGIN_KEY |
static String |
CVS_AUTH_TYPE |
static String |
CVS_BRANCH |
static String |
CVS_KEY_FILE |
static String |
CVS_LAST_UPDATE |
static String |
CVS_MODULE |
static String |
CVS_PASSPHRASE |
static String |
CVS_PASSWORD |
static String |
CVS_QUIET_PERIOD |
static String |
CVS_ROOT |
static String |
CVS_VERSION_TYPE |
CvsRepositoryManager |
cvsRepositoryManager |
static String |
DATE_FORMAT |
static org.apache.commons.lang3.time.FastDateFormat |
DEFAULT_LOG_DATE_FORMAT |
static String |
KEY |
static String |
NAME |
static String |
TEMPORARY_CVS_PASSWORD |
administrationConfigurationAccessor, BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, customVariableContext, featureManager, repositoryModuleDescriptor, templateRenderer, textProvider
moduleDescriptor
SELECTED_REPOSITORY, UNKNOWN_HOST
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_NONE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN
Constructor and Description |
---|
CVSRepository() |
Modifier and Type | Method and Description |
---|---|
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 |
collectChangesSinceLastBuild(String planKey,
String lastVcsRevisionKey)
Gets the code since the link
|
int |
compareTo(Object obj) |
boolean |
equals(Object o) |
List<NameValuePair> |
getAuthenticationTypes()
List all authentication types supported by repository.
|
String |
getAuthType() |
String |
getBranchName()
Returns branch name exactly as configured in the UI.
|
String |
getCvsRoot() |
String |
getHost()
What's the repository server host
|
String |
getKeyFile() |
String |
getLocationIdentifier()
A string representing the location of the repository
|
org.apache.commons.lang3.time.FastDateFormat |
getLogDateFormat() |
CvsRepositoryMavenPomAccessor |
getMavenPomAccessor() |
int |
getMaxRetries()
Returns the maximum number of times to collect changes
|
String |
getModule() |
String |
getName()
The display name for the repository type
|
protected String |
getPassphrase() |
String |
getPassword() |
int |
getQuietPeriod()
Returns the number of seconds to wait between each retry
|
File |
getSourceCodeDirectory(PlanKey planKey)
Deprecated.
since 3.3
|
String |
getSubstitutedBranchName()
Returns branch name with all the variables extrapolated with current values.
|
String |
getSubstitutedCvsRoot() |
String |
getSubstitutedKeyFile() |
CVSRepository.SymbolicNameType |
getSymbolicNameType() |
String |
getUrl() |
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() |
protected boolean |
isWorkspaceEmpty(File sourceCodeDirectory) |
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.
|
String |
retrieveSourceCode(BuildContext buildContext,
String vcsRevisionKey)
Deprecated.
since 3.3
|
protected void |
setAuthType(String authType) |
void |
setBranchName(String branchName) |
void |
setCvsRepositoryManager(CvsRepositoryManager cvsRepositoryManager) |
void |
setCvsRoot(String cvsRoot) |
void |
setLogDateFormat(org.apache.commons.lang3.time.FastDateFormat logDateFormat) |
void |
setModule(String moduleName) |
void |
setPassword(String password) |
void |
setQuietPeriod(int i) |
void |
setQuietPeriod(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
|
getAdvancedEditHtml, getAdvancedViewHtml, getEditHtml, getViewHtml, getViewHtml
checkConnection, collectChangesForRevision, customizeBuildRequirements, getAdvancedEditHtml, getAdvancedViewHtml, getBranchIntegrationEditHtml, getChangesetFilterPatternRegex, getDefaultTriggerModule, getDescription, getEditHtml, getFilterFilePatternOption, getFilterFilePatternRegex, getKey, getMavenPomCheckoutAccessEditHtml, getMaxCommitsToReturn, getMinimalEditHtml, getPollingTriggerModule, getShortKey, getSystemWideExclusionPatterns, getViewHtml, getWorkingDirectory, init, isAdvancedOptionEnabled, removeBuildRequirements, setAdministrationConfigurationAccessor, setBuildDirectoryManager, setBuildLoggerManager, setChangesetFilterPatternRegex, setCustomVariableContext, setFeatureManager, setFilterFilePatternOption, setFilterFilePatternRegex, setTemplateRenderer, setTextProvider, setWorkingDir, substituteString, toMergeCapableRepository
populateContextForEdit, populateContextForView
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
checkConnection, getKey, getMinimalEditHtml, getShortKey
customizeBuildRequirements, removeBuildRequirements
isConfigurationMissing
init
getEditHtml, getViewHtml
getDescription
public static final String DATE_FORMAT
public static final org.apache.commons.lang3.time.FastDateFormat DEFAULT_LOG_DATE_FORMAT
public static final String NAME
public static final String KEY
public static final String COMPLETE_PLUGIN_KEY
public static final String BUILD_MODULE_TRUNK
public static final String BUILD_MODULE_BRANCH
public static final String CVS_VERSION_TYPE
public static final String CVS_ROOT
public static final String CVS_PASSWORD
public static final String CVS_QUIET_PERIOD
public static final String CVS_MODULE
public static final String CVS_BRANCH
public static final String CVS_AUTH_TYPE
public static final String CVS_KEY_FILE
public static final String CVS_PASSPHRASE
public static final String CVS_LAST_UPDATE
public static final String TEMPORARY_CVS_PASSWORD
public transient CvsRepositoryManager cvsRepositoryManager
@NotNull public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull String planKey, @Nullable String lastVcsRevisionKey) throws RepositoryException
collectChangesSinceLastBuild
in interface RepositoryV2
planKey
- lastVcsRevisionKey
- RepositoryException
@Deprecated @NotNull public String retrieveSourceCode(@NotNull BuildContext buildContext, @Nullable String vcsRevisionKey) throws RepositoryException
LegacyRepository
retrieveSourceCode
in interface LegacyRepository
vcsRevisionKey
- - may be null if you want latest codeRepositoryException
public boolean isRepositoryDifferent(@NotNull Repository repository)
RepositoryV2
isRepositoryDifferent
in interface RepositoryV2
repository
- to compare againstprotected boolean isWorkspaceEmpty(File sourceCodeDirectory)
isWorkspaceEmpty
in class AbstractRepository
@NotNull public CvsRepositoryMavenPomAccessor getMavenPomAccessor()
getMavenPomAccessor
in interface MavenPomAccessorCapableRepository
public void addDefaultValues(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
RenderableBuildConfiguration.getEditHtml(com.atlassian.bamboo.ww2.actions.build.admin.create.BuildConfiguration, com.atlassian.bamboo.plan.Plan)
addDefaultValues
in interface BuildConfigurationAwarePlugin
addDefaultValues
in class AbstractRepository
buildConfiguration
- -public void prepareConfigObject(@NotNull BuildConfiguration buildConfiguration)
BuildConfigurationAwarePlugin
prepareConfigObject
in interface BuildConfigurationAwarePlugin
prepareConfigObject
in class BaseBuildConfigurationAwarePlugin
buildConfiguration
- -@NotNull public ErrorCollection validate(@NotNull BuildConfiguration buildConfiguration)
This is called from the build form.
validate
in interface BuildConfigurationAwarePlugin
validate
in class AbstractRepository
buildConfiguration
- -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 objecttoConfiguration
in interface ConvertibleFromConfig
toConfiguration
in class AbstractRepository
HierarchicalConfiguration
. Never nullpublic int compareTo(Object obj)
public String getKeyFile()
public String getSubstitutedKeyFile()
protected String getPassphrase()
public String getAuthType()
getAuthType
in interface SelectableAuthenticationRepository
protected void setAuthType(String authType)
@NotNull public String getName()
Repository
getName
in interface Repository
getName
in interface DescriptionProvider
getName
in interface NameProvider
public String getUrl()
public int getMaxRetries()
QuietPeriodAwareRepository
getMaxRetries
in interface QuietPeriodAwareRepository
getMaxRetries
in class AbstractRepository
@NotNull @Deprecated public File getSourceCodeDirectory(@NotNull PlanKey planKey) throws RepositoryException
getSourceCodeDirectory
in interface RepositoryV2
getSourceCodeDirectory
in class AbstractRepository
planKey
- RepositoryException
- A generic failurepublic String getModule()
public void setModule(String moduleName)
public String getBranchName()
getSubstitutedBranchName()
should be used.public String getSubstitutedBranchName()
public void setBranchName(String branchName)
public String getPassword()
public void setPassword(String password)
public void setQuietPeriod(String quietPeriod)
quietPeriod
- the number of seconds to wait for more checkinspublic void setQuietPeriod(int i)
public boolean isQuietPeriodEnabled()
QuietPeriodAwareRepository
isQuietPeriodEnabled
in interface QuietPeriodAwareRepository
isQuietPeriodEnabled
in class AbstractRepository
public int getQuietPeriod()
QuietPeriodAwareRepository
getQuietPeriod
in interface QuietPeriodAwareRepository
getQuietPeriod
in class AbstractRepository
public String getCvsRoot()
public String getHost()
Repository
getHost
in interface Repository
@NotNull public String getLocationIdentifier()
Repository
getLocationIdentifier
in interface Repository
getLocationIdentifier
in class AbstractRepository
public String getSubstitutedCvsRoot()
public void setCvsRoot(String cvsRoot)
public boolean isSshAuthType()
public void setCvsRepositoryManager(CvsRepositoryManager cvsRepositoryManager)
@NotNull public List<NameValuePair> getAuthenticationTypes()
SelectableAuthenticationRepository
getAuthenticationTypes
in interface SelectableAuthenticationRepository
@NotNull public Collection<NameValuePair> getVersionTypes()
public org.apache.commons.lang3.time.FastDateFormat getLogDateFormat()
public void setLogDateFormat(org.apache.commons.lang3.time.FastDateFormat logDateFormat)
public CVSRepository.SymbolicNameType getSymbolicNameType()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.