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, 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 |
---|
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
|
getViewHtml
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
getTemplateRenderer, populateContextForEdit, populateContextForView, prepareConfigObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkConnection, getLocationIdentifier, getShortKey
populateFromConfig, toConfiguration
getSourceCodeDirectory
customizeBuildRequirements, removeBuildRequirements
addDefaultValues, isConfigurationMissing, prepareConfigObject, validate
init
getViewHtml
getDescription
public static final String KEY
public NullRepository(@NotNull com.opensymphony.xwork2.TextProvider textProvider)
@NotNull public String getKey()
Repository
getKey
in interface Repository
getKey
in class AbstractRepository
@NotNull public String getName()
Repository
getName
in interface Repository
getName
in interface DescriptionProvider
getName
in interface NameProvider
public String getHost()
Repository
getHost
in interface Repository
@NotNull public BuildRepositoryChanges collectChangesSinceLastBuild(@NotNull String planKey, @Nullable String lastVcsRevisionKey) throws RepositoryException
RepositoryV2
collectChangesSinceLastBuild
in interface RepositoryV2
lastVcsRevisionKey
- 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
CustomSourceDirectoryAwareRepository
retrieveSourceCode
in interface CustomSourceDirectoryAwareRepository
vcsRevisionKey
- - may be null if you want latest codesourceDirectory
- - directory to checkout toRepositoryException
public boolean isRepositoryDifferent(@NotNull Repository repository)
RepositoryV2
isRepositoryDifferent
in interface RepositoryV2
repository
- to compare againstpublic String getMinimalEditHtml(@NotNull BuildConfiguration buildConfiguration)
Repository
getMinimalEditHtml
in interface Repository
getMinimalEditHtml
in class AbstractRepository
buildConfiguration
- BuildConfiguration objectpublic String getEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
RenderableBuildConfiguration
getEditHtml
in interface RenderableBuildConfiguration
getEditHtml
in class AbstractRepository
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.public String getAdvancedEditHtml(@NotNull BuildConfiguration buildConfiguration, @Nullable Plan plan)
getAdvancedEditHtml
in interface AdvancedConfigurationAwareRepository
getAdvancedEditHtml
in class AbstractRepository
public String getEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
AbstractStandaloneRepository
AbstractRepository.getEditHtml(BuildConfiguration, Plan)
getEditHtml
in interface StandaloneRepository
getEditHtml
in class AbstractStandaloneRepository
repositoryConfiguration
- HierarchicalConfiguration
for which edit HTML has to be rendered.public String getViewHtml()
AbstractStandaloneRepository
AbstractRepository.getViewHtml(Plan)
. This is not used
anywhere.getViewHtml
in interface StandaloneRepository
getViewHtml
in class AbstractStandaloneRepository
public String getAdvancedEditHtml(@NotNull org.apache.commons.configuration.HierarchicalConfiguration repositoryConfiguration)
StandaloneRepository
getAdvancedEditHtml
in interface StandaloneRepository
getAdvancedEditHtml
in class AbstractStandaloneRepository
repositoryConfiguration
- HierarchicalConfiguration
for which edit HTML has to be rendered.public String getAdvancedViewHtml()
StandaloneRepository
getAdvancedViewHtml
in interface StandaloneRepository
getAdvancedViewHtml
in class AbstractStandaloneRepository
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.