Call all_evaluations_passed hook

This commit is contained in:
Graham Christensen 2019-03-22 14:19:47 -04:00
parent 22fc680357
commit 2141f7352b
No known key found for this signature in database
GPG key ID: ACA1C1D120C83D5C

View file

@ -642,6 +642,26 @@ impl<E: stats::SysEvents + 'static> worker::SimpleWorker for EvaluationWorker<E>
&rebuild_tags.tags_to_remove(),
);
{
let ret = evaluation_strategy
.all_evaluations_passed(&Path::new(&refpath), &mut overall_status);
match ret {
Ok(builds) => {
if builds.len() != 0 {
panic!("we shouldn't be here yet!");
}
}
Err(e) => {
if self
.handle_strategy_err(Err(e), &gists, &mut overall_status)
.is_err()
{
return self.actions().skip(&job);
}
}
}
}
overall_status.set_with_description("^.^!", hubcaps::statuses::State::Success);
} else {
overall_status