use of com.thoughtworks.go.server.domain.StageStatusHandler in project gocd by gocd.
the class JobStatusListener method onMessage.
public void onMessage(final JobStatusMessage message) {
if (message.getJobState().isCompleted()) {
final Stage stage = stageService.findStageWithIdentifier(message.getStageIdentifier());
stage.statusHandling(new StageStatusHandler() {
public void onNormalCompletion(StageState stageState, StageResult stageResult) {
stageStatusTopic.post(new StageStatusMessage(message.getStageIdentifier(), stageState, stageResult));
}
});
}
}
Aggregations