Search in sources :

Example 1 with StageEvent

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()));
}
Also used : StageConfigIdentifier(com.thoughtworks.go.domain.StageConfigIdentifier) StageEvent(com.thoughtworks.go.domain.StageEvent)

Aggregations

StageConfigIdentifier (com.thoughtworks.go.domain.StageConfigIdentifier)1 StageEvent (com.thoughtworks.go.domain.StageEvent)1