Search in sources :

Example 1 with ValueResolver

use of jetbrains.buildServer.parameters.ValueResolver in project teamcity-git by JetBrains.

the class GitPathResolverImpl method resolveGitPath.

public String resolveGitPath(final BuildAgentConfiguration agentConfiguration, String pathToResolve) throws VcsException {
    ValueResolver resolver = agentConfiguration.getParametersResolver();
    ProcessingResult result = resolver.resolve(pathToResolve);
    if (!result.isFullyResolved()) {
        throw new VcsException("The value is not fully resolved: " + result.getResult());
    }
    return result.getResult();
}
Also used : ValueResolver(jetbrains.buildServer.parameters.ValueResolver) VcsException(jetbrains.buildServer.vcs.VcsException) ProcessingResult(jetbrains.buildServer.parameters.ProcessingResult)

Aggregations

ProcessingResult (jetbrains.buildServer.parameters.ProcessingResult)1 ValueResolver (jetbrains.buildServer.parameters.ValueResolver)1 VcsException (jetbrains.buildServer.vcs.VcsException)1