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());
}
Aggregations