Skip to content

Commit

Permalink
Fix #11, Rollback commit 7af680c, Properly sent an exit 1 when plugin…
Browse files Browse the repository at this point in the history
… fail or unstable
  • Loading branch information
nicodeur committed Sep 23, 2019
1 parent 330ffe6 commit 648dd0b
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,19 +220,13 @@ public void result(final ResultCIDto resultDto) {
logger.error("Please Check Cerberus log or Cerberus queue to resolve problem");
logger.error("UNSTABLE");
build.setResult(Result.FAILURE);

}
}
} catch (Exception e) {
logger.error("Error for campaign " + campaignName + " : ", e);
logger.error("Please Check Cerberus log or Cerberus queue to resolve problem");
logger.error("UNSTABLE");
build.setResult(Result.FAILURE);
} finally {
if (Result.FAILURE.equals(build.getResult()) || Result.UNSTABLE.equals(build.getResult())) {
logger.error("EXIT 1");
System.exit(1);
}
}
}

Expand Down

0 comments on commit 648dd0b

Please sign in to comment.