Search in sources :

Example 1 with GitMultiProjectPropertiesLocator

use of com.teamscale.jacoco.agent.commit_resolution.git_properties.GitMultiProjectPropertiesLocator in project teamscale-jacoco-agent by cqse.

the class AgentOptions method createDelayedMultiProjectTeamscaleUploader.

private IUploader createDelayedMultiProjectTeamscaleUploader(Instrumentation instrumentation) {
    DelayedTeamscaleMultiProjectUploader uploader = new DelayedTeamscaleMultiProjectUploader((project, revision) -> new TeamscaleUploader(teamscaleServer.withProjectAndRevision(project, revision)));
    GitMultiProjectPropertiesLocator locator = new GitMultiProjectPropertiesLocator(uploader);
    instrumentation.addTransformer(new GitPropertiesLocatingTransformer(locator, getLocationIncludeFilter()));
    return uploader;
}
Also used : GitMultiProjectPropertiesLocator(com.teamscale.jacoco.agent.commit_resolution.git_properties.GitMultiProjectPropertiesLocator) GitPropertiesLocatingTransformer(com.teamscale.jacoco.agent.commit_resolution.git_properties.GitPropertiesLocatingTransformer) DelayedTeamscaleMultiProjectUploader(com.teamscale.jacoco.agent.upload.teamscale.DelayedTeamscaleMultiProjectUploader) TeamscaleUploader(com.teamscale.jacoco.agent.upload.teamscale.TeamscaleUploader)

Aggregations

GitMultiProjectPropertiesLocator (com.teamscale.jacoco.agent.commit_resolution.git_properties.GitMultiProjectPropertiesLocator)1 GitPropertiesLocatingTransformer (com.teamscale.jacoco.agent.commit_resolution.git_properties.GitPropertiesLocatingTransformer)1 DelayedTeamscaleMultiProjectUploader (com.teamscale.jacoco.agent.upload.teamscale.DelayedTeamscaleMultiProjectUploader)1 TeamscaleUploader (com.teamscale.jacoco.agent.upload.teamscale.TeamscaleUploader)1