mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 04:45:07 +00:00
1.9 KiB
1.9 KiB
BuildsCollection()
Facade entity which accumulates operations with currently running and db saved builds.
BuildsCollection.create(params:Object, [callback(err)]:Function)
Create build by running given project.
params.projectName
- project to buildparams.withScmChangesOnly
- if true then build will be started only if there is scm changes for projectparams.queueQueued
- if true then currently queued project can be queued againparams.initiator
- contains information about initiator of the build, must containtype
property e.g. when one build triggers another: initiator: {type: 'build', id: 123, number: 10, project: {name: 'project1'}
BuildsCollection.cancel(id:Number, [callback(err)]:Function)
Cancel build by id. Note that only queued build can be canceled currently.
BuildsCollection.get(id:Number, callback(err,build):Function)
Get build by id.
BuildsCollection.getLogLines(params:Object, callback(err,logLinesData):Function)
Get log lines for the given build.
params.buildId
- target buildparams.from
- if set then lines from that number will be returnedparams.to
- if set then lines to that number will be returned