Skip to content

Commit

Permalink
fix(echo): send different phase in notification when stage is skipped (
Browse files Browse the repository at this point in the history
  • Loading branch information
anotherchrisberry committed Mar 12, 2018
1 parent 99cfdd5 commit cd64bc2
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ class EchoNotifyingStageListener implements StageListener {
// STOPPED stages are "successful" because they allow the pipeline to
// proceed but they are still failures in terms of the stage and should
// send failure notifications
if (stage.status in [SUCCEEDED, SKIPPED]) {
if (stage.status == SKIPPED) {
log.debug("***** $stage.execution.id Echo stage $stage.name skipped v2")
recordEvent('stage', 'skipped', stage)
} else if (stage.status == SUCCEEDED) {
log.debug("***** $stage.execution.id Echo stage $stage.name complete v2")
recordEvent('stage', 'complete', stage)
} else {
Expand Down

0 comments on commit cd64bc2

Please sign in to comment.