mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 02:15:08 +00:00
add build completed flag
This commit is contained in:
parent
dcf029371d
commit
b4d5e785bb
@ -68,6 +68,7 @@ Distributor.prototype._runNext = function(callback) {
|
||||
{
|
||||
endDate: Date.now(),
|
||||
status: err ? 'error' : 'done',
|
||||
completed: true,
|
||||
error: err ? err.message : null
|
||||
},
|
||||
function(err, build) {
|
||||
@ -135,7 +136,8 @@ Distributor.prototype.run = function(project, params, callback) {
|
||||
project: project,
|
||||
params: params,
|
||||
createDate: Date.now(),
|
||||
status: 'queued'
|
||||
status: 'queued',
|
||||
completed: false
|
||||
}, this.slot());
|
||||
},
|
||||
function(err, build) {
|
||||
|
@ -30,7 +30,7 @@ define([
|
||||
};
|
||||
|
||||
// create data resource for completed build
|
||||
if (build.status === 'done' || build.status === 'error') {
|
||||
if (build.completed) {
|
||||
connect.resource('projects')
|
||||
.sync('createBuildDataResource', function(err) {
|
||||
if (err) throw err;
|
||||
|
Loading…
Reference in New Issue
Block a user