public interface RepositoryExporter
Modifier and Type | Method and Description |
---|---|
default PartialVcsRepositoryData |
importRepository(com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties,
VcsRepositoryData existingData,
boolean global)
Transform repository properties to format used by Bamboo services.
|
PartialVcsRepositoryData |
importRepository(com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties,
VcsRepositoryData existingData,
boolean global,
com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryBranchProperties branchOverride)
Transform repository properties to format used by Bamboo services.
|
com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties |
toEntityProperties(String yaml)
Generate
VcsRepositoryProperties from YAML string |
com.atlassian.bamboo.specs.api.builders.repository.VcsRepository |
toSpecsEntity(PartialVcsRepositoryData repositoryData) |
<T extends com.atlassian.bamboo.specs.api.builders.repository.VcsRepository<T,E>,E extends com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties> |
toSpecsEntity(VcsRepositoryData repositoryData) |
Pair<com.atlassian.bamboo.specs.api.builders.repository.VcsRepository,com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryBranch> |
toSpecsEntityAndBranchOverride(PartialVcsRepositoryData repositoryData)
Export repository to pair of repository specs objects and (optionally) branch override object.
|
@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties toEntityProperties(@NotNull String yaml) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
VcsRepositoryProperties
from YAML stringcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
YamlValidationException
@NotNull com.atlassian.bamboo.specs.api.builders.repository.VcsRepository toSpecsEntity(@NotNull PartialVcsRepositoryData repositoryData)
repositoryData
- @NotNull Pair<com.atlassian.bamboo.specs.api.builders.repository.VcsRepository,com.atlassian.bamboo.specs.api.builders.repository.VcsRepositoryBranch> toSpecsEntityAndBranchOverride(@NotNull PartialVcsRepositoryData repositoryData)
@NotNull <T extends com.atlassian.bamboo.specs.api.builders.repository.VcsRepository<T,E>,E extends com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties> T toSpecsEntity(@NotNull VcsRepositoryData repositoryData)
repositoryData
- @NotNull default PartialVcsRepositoryData importRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties, @Nullable VcsRepositoryData existingData, boolean global) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
repositoryProperties
- configuration of repositoryexistingData
- previously existing repository dataglobal
- is repository globalcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsYamlValidationException
- if the format of the data is invalid - only discoverable at this stage
because pluggable code is involved in validation@NotNull PartialVcsRepositoryData importRepository(@NotNull com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryProperties repositoryProperties, @Nullable VcsRepositoryData existingData, boolean global, @Nullable com.atlassian.bamboo.specs.api.model.repository.VcsRepositoryBranchProperties branchOverride) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
repositoryProperties
- configuration of repositoryexistingData
- previously existing repository dataglobal
- is repository globalbranchOverride
- branch to be used.com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsYamlValidationException
- if the format of the data is invalid - only discoverable at this stage
because pluggable code is involved in validationCopyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.