notify about build before trigger

This commit is contained in:
oleg 2015-06-15 00:15:26 +03:00
parent 157c530d6b
commit b23edf202f

View File

@ -98,6 +98,9 @@ Distributor.prototype._onBuildComplete = function(err, build, callback) {
Steppy( Steppy(
function() { function() {
// notify about build
notifier.send(build);
// process after build triggers // process after build triggers
var triggerAfterGroup = this.makeGroup(); var triggerAfterGroup = this.makeGroup();
@ -120,9 +123,6 @@ Distributor.prototype._onBuildComplete = function(err, build, callback) {
}, },
function(err, triggerAfterGroupResults) { function(err, triggerAfterGroupResults) {
// notify about build
notifier.send(build);
// try to run next project from the queue // try to run next project from the queue
self._runNext(this.slot()); self._runNext(this.slot());
}, },