Methods
csrf(cb:)
Add Jenkins crumb header to instance.
This is needed for Jenkins installations that have CSRF protection enabled.
New installations of Jenkins starting version 2.x enables CSRF protection by default.
https://wiki.jenkins-ci.org/display/JENKINS/CSRF+Protection
- Source:
Parameters:
Name | Type | Description |
---|---|---|
cb: |
function
|
standard cb(err, result) callback |
executorSummary(computers:)
Summarise executor information from computers array.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
computers: |
Array
|
computers array, part of Jenkins#computer result |
Returns:
executor summary object
monitor(opts:, cb:)
Monitor Jenkins latest build status on a set interval.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
opts: |
Object
|
optional - job: Jenkins job name - view: Jenkins view name - schedule: cron scheduling definition in standard * * * * * * format, default: 0 * * * * * (every minute) |
cb: |
function
|
standard cb(err, result) callback |