public class NullRepository extends AbstractStandaloneRepository implements CustomSourceDirectoryAwareRepository
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY |
administrationConfigurationAccessor, BUILD_TRIGGER_IP, buildDirectoryManager, buildLoggerManager, customVariableContext, featureManager, REPO_PREFIX, repositoryModuleDescriptor, templateRenderer, textProvidermoduleDescriptorSELECTED_REPOSITORY, UNKNOWN_HOSTFILTER_PATTERN_EXCLUDE, FILTER_PATTERN_INCLUDE, FILTER_PATTERN_OPTION, FILTER_PATTERN_REGEXCHANGESET_FILTER_PATTERN_REGEX, MAVEN_RELEASE_PLUGIN_EXCLUSION_PATTERN| Constructor and Description |
|---|
NullRepository(com.opensymphony.xwork2.TextProvider textProvider) |
| Modifier and Type | Method and Description |
|---|---|
BuildRepositoryChanges |
collectChangesSinceLastBuild(String planKey,
String lastVcsRevisionKey)
Collects the changes since the lastVcsRevisionKey.
|
String |
getAdvancedEditHtml(BuildConfiguration buildConfiguration,
Plan plan) |
String |
getAdvancedEditHtml(org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
Return HTML that represents the form fragment for editing advanced options of the repository.
|
String |
getAdvancedViewHtml()
Returns the HTML that represents the view of the advanced repository configuration
|
String |
getEditHtml(BuildConfiguration buildConfiguration,
Plan plan)
Returns HTML that represents the form fragment for editing the repository.
|
String |
getEditHtml(org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
This implementation uses the same ftl templates as
AbstractRepository.getEditHtml(BuildConfiguration,
Plan) |
String |
getHost()
What's the repository server host
|
String |
getKey()
The full complete plugin key for the repo
|
String |
getMinimalEditHtml(BuildConfiguration buildConfiguration)
Returns HTML for the minimal configuration of the repository.
|
String |
getName()
The display name for the repository type
|
String |
getViewHtml()
This implementation uses the same ftl templates as
AbstractRepository.getViewHtml(Plan). |
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same as the given repository
|
String |
retrieveSourceCode(BuildContext buildContext,
String vcsRevisionKey,
File sourceDirectory)
Checks out the latest source code from an appropriate repository to specified directory
|
getViewHtmladdDefaultValues, 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, validatepopulateContextForEdit, populateContextForView, prepareConfigObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckConnection, getLocationIdentifier, getShortKeypopulateFromConfig, toConfigurationgetSourceCodeDirectorycustomizeBuildRequirements, removeBuildRequirementsaddDefaultValues, isConfigurationMissing, prepareConfigObject, validateinitgetViewHtmlgetDescriptionpublic static final String KEY
public NullRepository(@NotNull
com.opensymphony.xwork2.TextProvider textProvider)
@NotNull public String getKey()
RepositorygetKey in interface RepositorygetKey in class AbstractRepository@NotNull public String getName()
RepositorygetName in interface RepositorygetName in interface DescriptionProvidergetName in interface NameProviderpublic String getHost()
RepositorygetHost in interface Repository@NotNull public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull String planKey, @Nullable String lastVcsRevisionKey) throws RepositoryException
RepositoryV2collectChangesSinceLastBuild in interface RepositoryV2lastVcsRevisionKey - can be null, if null you should ensure the correct vcsrevisionkey is returned in the BuildChanges object.RepositoryException - if something goes wrong@NotNull public String retrieveSourceCode(@NotNull BuildContext buildContext, @Nullable String vcsRevisionKey, @NotNull File sourceDirectory) throws RepositoryException
CustomSourceDirectoryAwareRepositoryretrieveSourceCode in interface CustomSourceDirectoryAwareRepositoryvcsRevisionKey - - may be null if you want latest codesourceDirectory - - directory to checkout toRepositoryExceptionpublic boolean isRepositoryDifferent(@NotNull
Repository repository)
RepositoryV2isRepositoryDifferent in interface RepositoryV2repository - to compare againstpublic String getMinimalEditHtml(@NotNull BuildConfiguration buildConfiguration)
RepositorygetMinimalEditHtml in interface RepositorygetMinimalEditHtml in class AbstractRepositorybuildConfiguration - BuildConfiguration objectpublic String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
RenderableBuildConfigurationgetEditHtml in interface RenderableBuildConfigurationgetEditHtml in class AbstractRepositorybuildConfiguration - 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.public String getAdvancedEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
getAdvancedEditHtml in interface AdvancedConfigurationAwareRepositorygetAdvancedEditHtml in class AbstractRepositorypublic String getEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
AbstractStandaloneRepositoryAbstractRepository.getEditHtml(BuildConfiguration,
Plan)getEditHtml in interface StandaloneRepositorygetEditHtml in class AbstractStandaloneRepositoryrepositoryConfiguration - HierarchicalConfiguration for which edit HTML has to be rendered.public String getViewHtml()
AbstractStandaloneRepositoryAbstractRepository.getViewHtml(Plan). This is not used
anywhere.getViewHtml in interface StandaloneRepositorygetViewHtml in class AbstractStandaloneRepositorypublic String getAdvancedEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
StandaloneRepositorygetAdvancedEditHtml in interface StandaloneRepositorygetAdvancedEditHtml in class AbstractStandaloneRepositoryrepositoryConfiguration - HierarchicalConfiguration for which edit HTML has to be rendered.public String getAdvancedViewHtml()
StandaloneRepositorygetAdvancedViewHtml in interface StandaloneRepositorygetAdvancedViewHtml in class AbstractStandaloneRepositoryCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.