mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-25 19:46:16 +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(),
|
endDate: Date.now(),
|
||||||
status: err ? 'error' : 'done',
|
status: err ? 'error' : 'done',
|
||||||
|
completed: true,
|
||||||
error: err ? err.message : null
|
error: err ? err.message : null
|
||||||
},
|
},
|
||||||
function(err, build) {
|
function(err, build) {
|
||||||
@ -135,7 +136,8 @@ Distributor.prototype.run = function(project, params, callback) {
|
|||||||
project: project,
|
project: project,
|
||||||
params: params,
|
params: params,
|
||||||
createDate: Date.now(),
|
createDate: Date.now(),
|
||||||
status: 'queued'
|
status: 'queued',
|
||||||
|
completed: false
|
||||||
}, this.slot());
|
}, this.slot());
|
||||||
},
|
},
|
||||||
function(err, build) {
|
function(err, build) {
|
||||||
|
@ -30,7 +30,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
// create data resource for completed build
|
// create data resource for completed build
|
||||||
if (build.status === 'done' || build.status === 'error') {
|
if (build.completed) {
|
||||||
connect.resource('projects')
|
connect.resource('projects')
|
||||||
.sync('createBuildDataResource', function(err) {
|
.sync('createBuildDataResource', function(err) {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user