Search in sources :

Example 1 with MappingGeneratorService

use of jetbrains.vcs.api.services.tc.MappingGeneratorService in project teamcity-rest by JetBrains.

the class VcsRoot method getRepositoryMappings.

public static Collection<VcsMappingElement> getRepositoryMappings(@NotNull final jetbrains.buildServer.vcs.VcsRoot root, @NotNull final VcsManager vcsManager) throws VcsException {
    final VcsSettings vcsSettings = new VcsSettings(root, "");
    final MappingGeneratorService mappingGenerator = vcsManager.getVcsService(vcsSettings, MappingGeneratorService.class);
    if (mappingGenerator == null) {
        return Collections.emptyList();
    }
    return mappingGenerator.generateMapping();
}
Also used : MappingGeneratorService(jetbrains.vcs.api.services.tc.MappingGeneratorService) VcsSettings(jetbrains.vcs.api.VcsSettings)

Aggregations

VcsSettings (jetbrains.vcs.api.VcsSettings)1 MappingGeneratorService (jetbrains.vcs.api.services.tc.MappingGeneratorService)1