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,Serializable
public class NullRepository extends AbstractStandaloneRepository implements CustomSourceDirectoryAwareRepository
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringKEY-
Fields inherited from class com.atlassian.bamboo.repository.AbstractRepository
administrationConfigurationAccessor, BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, customVariableContext, featureManager, REPO_PREFIX, repositoryModuleDescriptor, templateRenderer, textProvider
-
Fields inherited from class com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
moduleDescriptor
-
Fields inherited from interface com.atlassian.bamboo.repository.FilterChangesetAwareRepository
CHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN
-
Fields inherited from interface com.atlassian.bamboo.repository.IncludeExcludeAwareRepository
FILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_NONE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEX
-
Fields inherited from interface com.atlassian.bamboo.repository.Repository
SELECTED_REPOSITORY, UNKNOWN_HOST
-
-
Constructor Summary
Constructors Constructor Description NullRepository(@NotNull com.opensymphony.xwork2.TextProvider textProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull BuildRepositoryChangescollectChangesSinceLastBuild(@NotNull String planKey, @Nullable String lastVcsRevisionKey)Collects the changes since the lastVcsRevisionKey.StringgetAdvancedEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)StringgetAdvancedEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)Return HTML that represents the form fragment for editing advanced options of the repository.StringgetAdvancedViewHtml()Returns the HTML that represents the view of the advanced repository configurationStringgetEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)Returns HTML that represents the form fragment for editing the repository.StringgetEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)This implementation uses the same ftl templates asAbstractRepository.getEditHtml(BuildConfiguration, Plan)StringgetHost()What's the repository server host@NotNull StringgetKey()The full complete plugin key for the repoStringgetMinimalEditHtml(@NotNull BuildConfiguration buildConfiguration)Returns HTML for the minimal configuration of the repository. i.e. the basic config required to get it working.@NotNull StringgetName()The display name for the repository typeStringgetViewHtml()This implementation uses the same ftl templates asAbstractRepository.getViewHtml(Plan).booleanisRepositoryDifferent(@NotNull Repository repository)Checks if the current repo is the same as the given repository@NotNull StringretrieveSourceCode(@NotNull BuildContext buildContext, @Nullable String vcsRevisionKey, @NotNull File sourceDirectory)Checks out the latest source code from an appropriate repository to specified directory-
Methods inherited from class com.atlassian.bamboo.repository.AbstractStandaloneRepository
getViewHtml
-
Methods inherited from class com.atlassian.bamboo.repository.AbstractRepository
addDefaultValues, checkConnection, collectChangesForRevision, customizeBuildRequirements, getAdvancedViewHtml, getBranchIntegrationEditHtml, getChangesetFilterPatternRegex, getDefaultTriggerModule, getDescription, getFilterFilePatternOption, getFilterFilePatternRegex, getLocationIdentifier, getMavenPomCheckoutAccessEditHtml, getMaxCommitsToReturn, getMaxRetries, getPollingTriggerModule, 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 com.atlassian.bamboo.v2.build.BaseBuildConfigurationAwarePlugin
getTemplateRenderer, populateContextForEdit, populateContextForView, prepareConfigObject
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.bamboo.v2.build.BuildConfigurationAwarePlugin
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
-
Methods inherited from interface com.atlassian.bamboo.v2.build.ConfigurablePlugin
customizeBuildRequirements, removeBuildRequirements
-
Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig
populateFromConfig, toConfiguration
-
Methods inherited from interface com.atlassian.bamboo.utils.DescriptionProvider
getDescription
-
Methods inherited from interface com.atlassian.bamboo.plugin.InitablePluginModule
init
-
Methods inherited from interface com.atlassian.bamboo.v2.build.RenderableBuildConfiguration
getViewHtml
-
Methods inherited from interface com.atlassian.bamboo.repository.Repository
checkConnection, getLocationIdentifier, getShortKey
-
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
getSourceCodeDirectory
-
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getKey
@NotNull public @NotNull String getKey()
Description copied from interface:RepositoryThe full complete plugin key for the repo- Specified by:
getKeyin interfaceRepository- Overrides:
getKeyin classAbstractRepository- Returns:
-
getName
@NotNull public @NotNull String getName()
Description copied from interface:RepositoryThe display name for the repository type- Specified by:
getNamein interfaceDescriptionProvider- Specified by:
getNamein interfaceNameProvider- Specified by:
getNamein interfaceRepository
-
getHost
public String getHost()
Description copied from interface:RepositoryWhat's the repository server host- Specified by:
getHostin interfaceRepository- Returns:
- The host!
-
collectChangesSinceLastBuild
@NotNull public @NotNull BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull @NotNull String planKey, @Nullable @Nullable String lastVcsRevisionKey) throws RepositoryException
Description copied from interface:RepositoryV2Collects the changes since the lastVcsRevisionKey. This method is called only on server side (never on agent).- Specified by:
collectChangesSinceLastBuildin interfaceRepositoryV2lastVcsRevisionKey- 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 @NotNull String retrieveSourceCode(@NotNull @NotNull BuildContext buildContext, @Nullable @Nullable String vcsRevisionKey, @NotNull @NotNull File sourceDirectory) throws RepositoryException
Description copied from interface:CustomSourceDirectoryAwareRepositoryChecks out the latest source code from an appropriate repository to specified directory- Specified by:
retrieveSourceCodein interfaceCustomSourceDirectoryAwareRepositoryvcsRevisionKey- - may be null if you want latest codesourceDirectory- - directory to checkout to- Returns:
- vcsRevisionKey - the revision
- Throws:
RepositoryException
-
isRepositoryDifferent
public boolean isRepositoryDifferent(@NotNull @NotNull Repository repository)Description copied from interface:RepositoryV2Checks if the current repo is the same as the given repository- Specified by:
isRepositoryDifferentin interfaceRepositoryV2- Parameters:
repository- to compare against- Returns:
- true of repositories are different, false if the same;
-
getMinimalEditHtml
public String getMinimalEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration)
Description copied from interface:RepositoryReturns HTML for the minimal configuration of the repository. i.e. the basic config required to get it working.- Specified by:
getMinimalEditHtmlin interfaceRepository- Overrides:
getMinimalEditHtmlin classAbstractRepository- Parameters:
buildConfiguration- BuildConfiguration object- Returns:
- HTML for the minimal configuration of the repository
-
getEditHtml
public String getEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)
Description copied from interface:RenderableBuildConfigurationReturns HTML that represents the form fragment for editing the repository. No opening and closing form tags are required.- Specified by:
getEditHtmlin interfaceRenderableBuildConfiguration- Overrides:
getEditHtmlin classAbstractRepository- Parameters:
buildConfiguration-BuildConfigurationfor which edit HTML has to be rendered.plan-Planfor which edit HTML has to be rendered. May be null during creation phase of plan.- Returns:
- HTML string. May be null.
-
getAdvancedEditHtml
public String getAdvancedEditHtml(@NotNull @NotNull BuildConfiguration buildConfiguration, @Nullable @Nullable Plan plan)
- Specified by:
getAdvancedEditHtmlin interfaceAdvancedConfigurationAwareRepository- Overrides:
getAdvancedEditHtmlin classAbstractRepository
-
getEditHtml
public String getEditHtml(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Description copied from class:AbstractStandaloneRepositoryThis implementation uses the same ftl templates asAbstractRepository.getEditHtml(BuildConfiguration, Plan)- Specified by:
getEditHtmlin interfaceStandaloneRepository- Overrides:
getEditHtmlin classAbstractStandaloneRepository- Parameters:
repositoryConfiguration-HierarchicalConfigurationfor which edit HTML has to be rendered.- Returns:
- HTML string. May be null.
-
getViewHtml
public String getViewHtml()
Description copied from class:AbstractStandaloneRepositoryThis implementation uses the same ftl templates asAbstractRepository.getViewHtml(Plan). This is not used anywhere.- Specified by:
getViewHtmlin interfaceStandaloneRepository- Overrides:
getViewHtmlin classAbstractStandaloneRepository- Returns:
- HTML string. May be null.
-
getAdvancedEditHtml
public String getAdvancedEditHtml(@NotNull @NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Description copied from interface:StandaloneRepositoryReturn HTML that represents the form fragment for editing advanced options of the repository.- Specified by:
getAdvancedEditHtmlin interfaceStandaloneRepository- Overrides:
getAdvancedEditHtmlin classAbstractStandaloneRepository- Parameters:
repositoryConfiguration-HierarchicalConfigurationfor which edit HTML has to be rendered.- Returns:
-
getAdvancedViewHtml
public String getAdvancedViewHtml()
Description copied from interface:StandaloneRepositoryReturns the HTML that represents the view of the advanced repository configuration- Specified by:
getAdvancedViewHtmlin interfaceStandaloneRepository- Overrides:
getAdvancedViewHtmlin classAbstractStandaloneRepository- Returns:
- HTML string. May be null.
-
-