Search in sources :

Example 1 with ArtifactoryUploader

use of com.teamscale.jacoco.agent.upload.artifactory.ArtifactoryUploader in project teamscale-jacoco-agent by cqse.

the class AgentOptions method createDelayedArtifactoryUploader.

private IUploader createDelayedArtifactoryUploader(Instrumentation instrumentation) {
    DelayedUploader<ArtifactoryConfig.CommitInfo> uploader = new DelayedUploader<>(commitInfo -> {
        artifactoryConfig.commitInfo = commitInfo;
        return new ArtifactoryUploader(artifactoryConfig, additionalMetaDataFiles);
    }, outputDirectory);
    GitPropertiesLocator<ArtifactoryConfig.CommitInfo> locator = new GitPropertiesLocator<>(uploader, (file, isJarFile) -> ArtifactoryConfig.parseGitProperties(file, artifactoryConfig.gitPropertiesCommitTimeFormat));
    instrumentation.addTransformer(new GitPropertiesLocatingTransformer(locator, getLocationIncludeFilter()));
    return uploader;
}
Also used : GitPropertiesLocatingTransformer(com.teamscale.jacoco.agent.commit_resolution.git_properties.GitPropertiesLocatingTransformer) GitPropertiesLocator(com.teamscale.jacoco.agent.commit_resolution.git_properties.GitPropertiesLocator) ArtifactoryUploader(com.teamscale.jacoco.agent.upload.artifactory.ArtifactoryUploader) DelayedUploader(com.teamscale.jacoco.agent.upload.delay.DelayedUploader)

Aggregations

GitPropertiesLocatingTransformer (com.teamscale.jacoco.agent.commit_resolution.git_properties.GitPropertiesLocatingTransformer)1 GitPropertiesLocator (com.teamscale.jacoco.agent.commit_resolution.git_properties.GitPropertiesLocator)1 ArtifactoryUploader (com.teamscale.jacoco.agent.upload.artifactory.ArtifactoryUploader)1 DelayedUploader (com.teamscale.jacoco.agent.upload.delay.DelayedUploader)1