mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-10 17:59:16 +00:00
set initiator when trigger build from scheduller
This commit is contained in:
parent
037b79a0c6
commit
e804437c76
@ -20,7 +20,8 @@ exports.init = function(app, callback) {
|
||||
logger.log('Run project "%s"', project.name);
|
||||
distributor.run({
|
||||
projectName: project.name,
|
||||
withScmChangesOnly: project.buildEvery.withScmChangesOnly
|
||||
withScmChangesOnly: project.buildEvery.withScmChangesOnly,
|
||||
initiator: {type: 'scheduler'}
|
||||
});
|
||||
},
|
||||
start: true
|
||||
|
@ -23,9 +23,7 @@ div.row
|
||||
.text-muted(style={marginTop: '-10px'})
|
||||
| Initiated by
|
||||
- var initiator = this.state.build.initiator;
|
||||
if initiator.type === 'user'
|
||||
span user
|
||||
else if initiator.type === 'build'
|
||||
if initiator.type === 'build'
|
||||
Link(to="project", params={name: initiator.project.name})
|
||||
span= initiator.project.name
|
||||
|
|
||||
|
Loading…
Reference in New Issue
Block a user