com.atlassian.bamboo.repository.nullrepository
Class NullRepository
java.lang.Object
com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
com.atlassian.bamboo.v2.build.BaseConfigurablePlugin
com.atlassian.bamboo.repository.AbstractRepository
com.atlassian.bamboo.repository.nullrepository.NullRepository
- All Implemented Interfaces:
- ConvertibleFromConfig, InitablePluginModule, AdvancedConfigurationAwareRepository, CleanCheckoutAwareRepository, CleanWorkingDirectoryAwareRepository, IncludeExcludeAwareRepository, QuietPeriodAwareRepository, Repository, DescriptionProvider, NameProvider, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, RenderableBuildConfiguration, RepositoryV2, java.io.Serializable
public class NullRepository
- extends AbstractRepository
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
KEY
|
Constructor Summary |
NullRepository(com.opensymphony.xwork.TextProvider textProvider)
|
Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository |
addDefaultValues, checkConnection, customizeBuildRequirements, getAdvancedEditHtml, getAdvancedViewHtml, getDescription, getEditHtml, getFilterFilePatternOption, getFilterFilePatternRegex, getLocationIdentifier, getMavenPomCheckoutAccessEditHtml, getMaxRetries, getQuietPeriod, getShortKey, getSourceCodeDirectory, getTriggerIpAddress, getViewHtml, getWorkingDirectory, init, isAdvancedOptionEnabled, isCleanCheckout, isCleanWorkingDirectory, isQuietPeriodEnabled, isWorkspaceEmpty, populateFromConfig, referencesDifferentRepository, removeBuildRequirements, setBuildDirectoryManager, setBuildLoggerManager, setCleanCheckout, setCleanWorkingDirectory, setCustomVariableContext, setFilterFilePatternOption, setFilterFilePatternRegex, setReferencesDifferentRepository, setTemplateRenderer, setTextProvider, setWorkingDir, substituteString, toConfiguration, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY
public static final java.lang.String KEY
- See Also:
- Constant Field Values
NullRepository
public NullRepository(@NotNull
com.opensymphony.xwork.TextProvider textProvider)
getKey
@NotNull
public java.lang.String getKey()
- Description copied from interface:
Repository
- The full complete plugin key for the repo
- Specified by:
getKey
in interface Repository
- Overrides:
getKey
in class AbstractRepository
- Returns:
getName
@NotNull
public java.lang.String getName()
- Description copied from interface:
Repository
- The display name for the repository type
getHost
public java.lang.String getHost()
- Description copied from interface:
Repository
- What's the repository server host
- Returns:
- The host!
collectChangesSinceLastBuild
@NotNull
public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull
java.lang.String planKey,
@Nullable
java.lang.String lastVcsRevisionKey)
throws RepositoryException
- Description copied from interface:
RepositoryV2
- Collects the changes since the lastVcsRevisionKey
lastVcsRevisionKey
- - can be null, if null you should ensure the correct vcsrevisionkey is returned in the BuildChanges object.
- Returns:
- A build changes object with the appropriate build changes
- Throws:
RepositoryException
- if something goes wrong
retrieveSourceCode
@NotNull
public java.lang.String retrieveSourceCode(@NotNull
BuildContext buildContext,
@Nullable
java.lang.String vcsRevisionKey)
throws RepositoryException
- Description copied from interface:
RepositoryV2
- Checks out the latest source code to an appropriate repository to default source code directory.
vcsRevisionKey
- - may be null if you want latest code
- Returns:
- vcsRevisionKey - the revision
- Throws:
RepositoryException
isRepositoryDifferent
public boolean isRepositoryDifferent(@NotNull
Repository repository)
- Description copied from interface:
RepositoryV2
- Checks if the current repo is the same as the given repository
- Parameters:
repository
- to compare against
- Returns:
- true of repositories are different, false if the same;
getMinimalEditHtml
public java.lang.String getMinimalEditHtml(@NotNull
BuildConfiguration buildConfiguration)
- Description copied from interface:
Repository
- Returns HTML for the minimal configuration of the repository. i.e. the basic config required to get it working.
- Specified by:
getMinimalEditHtml
in interface Repository
- Overrides:
getMinimalEditHtml
in class AbstractRepository
- Parameters:
buildConfiguration
- BuildConfiguration object
- Returns:
- HTML for the minimal configuration of the repository
Copyright © 2011 Atlassian. All Rights Reserved.