Search in sources :

Example 1 with Report

use of com.thoughtworks.go.websocket.Report in project gocd by gocd.

the class DefaultBuildStateReporter method reportCompleting.

@Override
public void reportCompleting(String buildId, JobResult buildResult) {
    Report report = new Report(agentRuntimeInfo, buildId, null, buildResult);
    webSocketSessionHandler.sendAndWaitForAcknowledgement(new Message(Action.reportCompleting, MessageEncoding.encodeData(report)));
}
Also used : Message(com.thoughtworks.go.websocket.Message) Report(com.thoughtworks.go.websocket.Report)

Example 2 with Report

use of com.thoughtworks.go.websocket.Report in project gocd by gocd.

the class DefaultBuildStateReporter method reportCompleted.

@Override
public void reportCompleted(String buildId, JobResult buildResult) {
    Report report = new Report(agentRuntimeInfo, buildId, null, buildResult);
    webSocketSessionHandler.sendAndWaitForAcknowledgement(new Message(Action.reportCompleted, MessageEncoding.encodeData(report)));
}
Also used : Message(com.thoughtworks.go.websocket.Message) Report(com.thoughtworks.go.websocket.Report)

Aggregations

Message (com.thoughtworks.go.websocket.Message)2 Report (com.thoughtworks.go.websocket.Report)2