mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 06:35:09 +00:00
run next project from the queue on build end
This commit is contained in:
parent
5cfebe1aa1
commit
4c364fa0e2
@ -61,7 +61,10 @@ Distributor.prototype._runNext = function(callback) {
|
|||||||
var executor = node.run(queueItem.project, build.params, function(err) {
|
var executor = node.run(queueItem.project, build.params, function(err) {
|
||||||
build.status = err ? 'error' : 'done';
|
build.status = err ? 'error' : 'done';
|
||||||
build.error = err;
|
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) {
|
executor.on('data', function(data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user