mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-03-12 14:29:59 +00:00
rename option for forcing queue already queued project
This commit is contained in:
parent
8c53e0e621
commit
7906ebb9f6
@ -67,7 +67,7 @@ module.exports = function(app) {
|
|||||||
app.distributor.run({
|
app.distributor.run({
|
||||||
projectName: projectName,
|
projectName: projectName,
|
||||||
withScmChangesOnly: req.body.withScmChangesOnly,
|
withScmChangesOnly: req.body.withScmChangesOnly,
|
||||||
queueTwice: req.body.queueTwice,
|
queueQueued: req.body.queueQueued,
|
||||||
initiator: {type: 'httpApi'}
|
initiator: {type: 'httpApi'}
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
@ -292,7 +292,7 @@ Distributor.prototype.run = function(params, callback) {
|
|||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!params.queueTwice) {
|
if (!params.queueQueued) {
|
||||||
var queuedItem = _(self.queue).find(function(item) {
|
var queuedItem = _(self.queue).find(function(item) {
|
||||||
return item.project.name === project.name;
|
return item.project.name === project.name;
|
||||||
});
|
});
|
||||||
|
@ -120,7 +120,7 @@ module.exports = function(app) {
|
|||||||
distributor.run({
|
distributor.run({
|
||||||
projectName: projectName,
|
projectName: projectName,
|
||||||
initiator: {type: 'user'},
|
initiator: {type: 'user'},
|
||||||
queueTwice: true
|
queueQueued: true
|
||||||
});
|
});
|
||||||
res.send();
|
res.send();
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user