Skip to content

Commit

Permalink
Fixes #42
Browse files Browse the repository at this point in the history
Ugly patching for now - need to figure out why this is happening
  • Loading branch information
ashwanthkumar committed Jul 3, 2016
1 parent 59609eb commit 3c47851
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import com.thoughtworks.go.plugin.api.logging.Logger;
import in.ashwanthkumar.gocd.slack.jsonapi.*;
import in.ashwanthkumar.gocd.slack.ruleset.Rules;
import in.ashwanthkumar.utils.lang.StringUtils;

import java.io.IOException;
import java.net.URI;
Expand Down Expand Up @@ -178,7 +179,7 @@ public void tryToFixStageResult(Rules rules)
Stage previous = history.previousRun(Integer.parseInt(pipeline.counter),
pipeline.stage.name,
Integer.parseInt(pipeline.stage.counter));
if (previous == null) {
if (previous == null || StringUtils.isEmpty(previous.result)) {
LOG.info("Couldn't find any previous run of " +
pipeline.name + "/" + pipeline.counter + "/" +
pipeline.stage.name + "/" + pipeline.stage.counter);
Expand Down

0 comments on commit 3c47851

Please sign in to comment.