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.AbstractStandaloneRepository
com.atlassian.bamboo.repository.nullrepository.NullRepository
- All Implemented Interfaces:
- ConvertibleFromConfig, InitablePluginModule, AdvancedConfigurationAwareRepository, FilterChangesetAwareRepository, IncludeExcludeAwareRepository, OnceOffCapableRepository, QuietPeriodAwareRepository, Repository, StandaloneRepository, DescriptionProvider, NameProvider, BambooPluginModule, BuildConfigurationAwarePlugin, ConfigurablePlugin, RenderableBuildConfiguration, CustomSourceDirectoryAwareRepository, RepositoryV2, java.io.Serializable
public class NullRepository
- extends AbstractStandaloneRepository
- implements CustomSourceDirectoryAwareRepository
- See Also:
- Serialized Form
|
Field Summary |
static java.lang.String |
KEY
|
|
Constructor Summary |
NullRepository(com.opensymphony.xwork2.TextProvider textProvider)
|
| Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository |
addDefaultValues, checkConnection, collectChangesForRevision, customizeBuildRequirements, getAdvancedViewHtml, getBranchIntegrationEditHtml, getChangesetFilterPatternRegex, getDefaultBuildStrategy, getDescription, getFilterFilePatternOption, getFilterFilePatternRegex, getLocationIdentifier, getMavenPomCheckoutAccessEditHtml, getMaxCommitsToReturn, getMaxRetries, getQuietPeriod, getShortKey, getSourceCodeDirectory, getSystemWideExclusionPatterns, getViewHtml, getWorkingDirectory, init, isAdvancedOptionEnabled, isQuietPeriodEnabled, isWorkspaceEmpty, populateFromConfig, removeBuildRequirements, setAdministrationConfigurationAccessor, setBuildDirectoryManager, setBuildLoggerManager, setChangesetFilterPatternRegex, setCustomVariableContext, setFeatureManager, setFilterFilePatternOption, setFilterFilePatternRegex, setTemplateRenderer, setTextProvider, setWorkingDir, substituteString, toConfiguration, toMergeCapableRepository, 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.xwork2.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
- Specified by:
getName in interface Repository- Specified by:
getName in interface DescriptionProvider- Specified by:
getName in interface NameProvider
getHost
public java.lang.String getHost()
- Description copied from interface:
Repository
- What's the repository server host
- Specified by:
getHost in interface Repository
- 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.
This method is called only on server side (never on agent).
- Specified by:
collectChangesSinceLastBuild in interface RepositoryV2
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,
@NotNull
java.io.File sourceDirectory)
throws RepositoryException
- Description copied from interface:
CustomSourceDirectoryAwareRepository
- Checks out the latest source code from an appropriate repository to specified directory
- Specified by:
retrieveSourceCode in interface CustomSourceDirectoryAwareRepository
vcsRevisionKey - - may be null if you want latest codesourceDirectory - - directory to checkout to
- 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
- Specified by:
isRepositoryDifferent in interface RepositoryV2
- 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
getEditHtml
public java.lang.String getEditHtml(@NotNull
BuildConfiguration buildConfiguration,
@Nullable
Plan plan)
- Description copied from interface:
RenderableBuildConfiguration
- Returns HTML that represents the form fragment for editing the repository. No opening and closing form tags are
required.
- Specified by:
getEditHtml in interface RenderableBuildConfiguration- Overrides:
getEditHtml in class AbstractRepository
- Parameters:
buildConfiguration - BuildConfiguration for which edit HTML has to be rendered.plan - Plan for which edit HTML has to be rendered. May be null during creation phase of plan.
- Returns:
- HTML string. May be null.
getAdvancedEditHtml
public java.lang.String getAdvancedEditHtml(@NotNull
BuildConfiguration buildConfiguration,
@Nullable
Plan plan)
- Specified by:
getAdvancedEditHtml in interface AdvancedConfigurationAwareRepository- Overrides:
getAdvancedEditHtml in class AbstractRepository
getEditHtml
public java.lang.String getEditHtml(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
- Description copied from class:
AbstractStandaloneRepository
- This implementation uses the same ftl templates as
AbstractRepository.getEditHtml(BuildConfiguration, Plan)
- Specified by:
getEditHtml in interface StandaloneRepository- Overrides:
getEditHtml in class AbstractStandaloneRepository
- Parameters:
repositoryConfiguration - HierarchicalConfiguration for which edit HTML has to be rendered.
- Returns:
- HTML string. May be null.
getViewHtml
public java.lang.String getViewHtml()
- Description copied from class:
AbstractStandaloneRepository
- This implementation uses the same ftl templates as
AbstractRepository.getViewHtml(Plan)
This is not used anywhere .
- Specified by:
getViewHtml in interface StandaloneRepository- Overrides:
getViewHtml in class AbstractStandaloneRepository
- Returns:
- HTML string. May be null.
getAdvancedEditHtml
public java.lang.String getAdvancedEditHtml(@NotNull
org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
- Description copied from interface:
StandaloneRepository
- Return HTML that represents the form fragment for editing advanced options of the repository.
- Specified by:
getAdvancedEditHtml in interface StandaloneRepository- Overrides:
getAdvancedEditHtml in class AbstractStandaloneRepository
- Parameters:
repositoryConfiguration - HierarchicalConfiguration for which edit HTML has to be rendered.
- Returns:
getAdvancedViewHtml
public java.lang.String getAdvancedViewHtml()
- Description copied from interface:
StandaloneRepository
- Returns the HTML that represents the view of the advanced repository configuration
- Specified by:
getAdvancedViewHtml in interface StandaloneRepository- Overrides:
getAdvancedViewHtml in class AbstractStandaloneRepository
- Returns:
- HTML string. May be null.
Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.