set initiator when trigger build from scheduller

This commit is contained in:
oleg 2015-11-23 21:35:52 +03:00
parent 037b79a0c6
commit e804437c76
2 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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
|