run next project from the queue on build end

This commit is contained in:
oleg 2015-05-04 12:27:01 +03:00
parent 5cfebe1aa1
commit 4c364fa0e2

View File

@ -61,7 +61,10 @@ Distributor.prototype._runNext = function(callback) {
var executor = node.run(queueItem.project, build.params, function(err) {
build.status = err ? 'error' : 'done';
build.error = err;
self._updateBuild(build, stepCallback);
self._updateBuild(build, function(err, build) {
// try to run next project from the queue
self._runNext(stepCallback);
});
});
executor.on('data', function(data) {