mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-03-11 07:30:02 +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({
|
||||
projectName: projectName,
|
||||
withScmChangesOnly: req.body.withScmChangesOnly,
|
||||
queueTwice: req.body.queueTwice,
|
||||
queueQueued: req.body.queueQueued,
|
||||
initiator: {type: 'httpApi'}
|
||||
});
|
||||
} else {
|
||||
|
@ -292,7 +292,7 @@ Distributor.prototype.run = function(params, callback) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
if (!params.queueTwice) {
|
||||
if (!params.queueQueued) {
|
||||
var queuedItem = _(self.queue).find(function(item) {
|
||||
return item.project.name === project.name;
|
||||
});
|
||||
|
@ -120,7 +120,7 @@ module.exports = function(app) {
|
||||
distributor.run({
|
||||
projectName: projectName,
|
||||
initiator: {type: 'user'},
|
||||
queueTwice: true
|
||||
queueQueued: true
|
||||
});
|
||||
res.send();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user