public final class AnyVcsRepository extends VcsRepository<AnyVcsRepository,AnyVcsRepositoryProperties>
Since knowledge of internal representation of plugin data is required to properly construct this object, this class should only be used if the specialised implementation of a given credential type is not available.
description, name, oid, parent, repositoryViewer, TYPE
Constructor and Description |
---|
AnyVcsRepository(AtlassianModule atlassianPlugin)
Specifies a repository of given type.
|
AnyVcsRepository(AtlassianModuleProperties atlassianPlugin)
Specifies a repository of given type.
|
Modifier and Type | Method and Description |
---|---|
AnyVcsRepository |
branchConfiguration(Map<String,Object> branchConfiguration)
Sets branch part of the configuration.
|
AnyVcsRepository |
branchDetectionConfiguration(Map<String,Object> branchDetectionConfiguration)
Sets branch detection part of the configuration.
|
protected AnyVcsRepositoryProperties |
build() |
AnyVcsRepository |
changeDetectionConfiguration(VcsChangeDetection changeDetectionConfiguration)
Sets change detection part of the configuration.
|
AnyVcsRepository |
serverConfiguration(Map<String,Object> serverConfiguration)
Sets server part of the configuration.
|
description, getIdentifier, getName, getOid, humanReadableId, humanReadableType, name, oid, oid, parent, repositoryViewer
public AnyVcsRepository(AtlassianModuleProperties atlassianPlugin)
atlassianPlugin
- type of the repository identified by its plugin module keyAtlassianModule
public AnyVcsRepository(AtlassianModule atlassianPlugin)
atlassianPlugin
- type of the repository identified by its plugin module keyAtlassianModule
public AnyVcsRepository serverConfiguration(@Nullable Map<String,Object> serverConfiguration) throws PropertiesValidationException
Repository configuration in Bamboo is split into chunks that allow parts of data to be inherited (and to be overridden). Server configuration typically contains data like: url, credentials, repository name or path, advanced options nb. command timeouts, caching etc.
The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
PropertiesValidationException
public AnyVcsRepository branchConfiguration(@Nullable Map<String,Object> branchConfiguration) throws PropertiesValidationException
Repository configuration in Bamboo is split into chunks that allow parts of data to be inherited (and to be overridden). Branch configuration defines which particular branch of the repository this object represents.
The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
PropertiesValidationException
public AnyVcsRepository branchDetectionConfiguration(@Nullable Map<String,Object> branchDetectionConfiguration) throws PropertiesValidationException
Repository configuration in Bamboo is split into chunks that allow parts of data to be inherited (and to be overridden). Branch detection options contain configuration specific to automatic branch management in Bamboo.
The configuration should be in the format used by respective plugin. No syntactical nor semantic validation is performed on the source data. The configuration is stored 'as is' in the Bamboo DB.
PropertiesValidationException
public AnyVcsRepository changeDetectionConfiguration(@Nullable VcsChangeDetection changeDetectionConfiguration) throws PropertiesValidationException
Repository configuration in Bamboo is split into chunks that allow parts of data to be inherited (and to be overridden). Change detection options contain configuration specific to change detection in Bamboo, such us commit isolation, filtering etc.
PropertiesValidationException
VcsChangeDetection
protected AnyVcsRepositoryProperties build()
build
in class VcsRepository<AnyVcsRepository,AnyVcsRepositoryProperties>
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.