use of com.thoughtworks.go.domain.StageEvent in project gocd by gocd.
the class StageResultCache method onMessage.
public void onMessage(StageStatusMessage message) {
StageConfigIdentifier identifier = message.getStageIdentifier().stageConfigIdentifier();
updateCache(identifier, message.getStageResult());
StageEvent event = message.getStageResult().describeChangeEvent(previousResult(identifier));
stageResultTopic.post(new StageResultMessage(message.getStageIdentifier(), event, message.username()));
}
Aggregations