mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-14 04:49:17 +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);
|
logger.log('Run project "%s"', project.name);
|
||||||
distributor.run({
|
distributor.run({
|
||||||
projectName: project.name,
|
projectName: project.name,
|
||||||
withScmChangesOnly: project.buildEvery.withScmChangesOnly
|
withScmChangesOnly: project.buildEvery.withScmChangesOnly,
|
||||||
|
initiator: {type: 'scheduler'}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
start: true
|
start: true
|
||||||
|
@ -23,9 +23,7 @@ div.row
|
|||||||
.text-muted(style={marginTop: '-10px'})
|
.text-muted(style={marginTop: '-10px'})
|
||||||
| Initiated by
|
| Initiated by
|
||||||
- var initiator = this.state.build.initiator;
|
- var initiator = this.state.build.initiator;
|
||||||
if initiator.type === 'user'
|
if initiator.type === 'build'
|
||||||
span user
|
|
||||||
else if initiator.type === 'build'
|
|
||||||
Link(to="project", params={name: initiator.project.name})
|
Link(to="project", params={name: initiator.project.name})
|
||||||
span= initiator.project.name
|
span= initiator.project.name
|
||||||
|
|
|
|
||||||
|
Loading…
Reference in New Issue
Block a user