Search in sources :

Example 1 with ArtifactsPublisher

use of com.thoughtworks.go.remote.work.artifact.ArtifactsPublisher in project gocd by gocd.

the class BuildWork method initialize.

private void initialize(AgentWorkContext agentWorkContext) {
    JobIdentifier jobIdentifier = assignment.getJobIdentifier();
    this.timeProvider = new TimeProvider();
    agentWorkContext.getAgentRuntimeInfo().busy(new AgentBuildingInfo(jobIdentifier.buildLocatorForDisplay(), jobIdentifier.buildLocator()));
    this.workingDirectory = assignment.getWorkingDirectory();
    this.materialRevisions = assignment.materialRevisions();
    this.goPublisher = new DefaultGoPublisher(agentWorkContext.getArtifactsManipulator(), jobIdentifier, agentWorkContext.getRepositoryRemote(), agentWorkContext.getAgentRuntimeInfo(), consoleLogCharset);
    this.artifactsPublisher = new ArtifactsPublisher(goPublisher, agentWorkContext.getArtifactExtension(), assignment.getArtifactStores(), agentWorkContext.getPluginRequestProcessorRegistry(), workingDirectory);
    this.builders = new Builders(assignment.getBuilders(), goPublisher, agentWorkContext.getTaskExtension(), agentWorkContext.getArtifactExtension(), agentWorkContext.getPluginRequestProcessorRegistry());
}
Also used : AgentBuildingInfo(com.thoughtworks.go.server.service.AgentBuildingInfo) TimeProvider(com.thoughtworks.go.util.TimeProvider) DefaultGoPublisher(com.thoughtworks.go.work.DefaultGoPublisher) ArtifactsPublisher(com.thoughtworks.go.remote.work.artifact.ArtifactsPublisher)

Aggregations

ArtifactsPublisher (com.thoughtworks.go.remote.work.artifact.ArtifactsPublisher)1 AgentBuildingInfo (com.thoughtworks.go.server.service.AgentBuildingInfo)1 TimeProvider (com.thoughtworks.go.util.TimeProvider)1 DefaultGoPublisher (com.thoughtworks.go.work.DefaultGoPublisher)1