Streams the logs of a build in Jenkins.
Parameters:
Name | Type | Description |
---|---|---|
auth |
JenkinsAuth | The authentication object to pass |
jobName |
string | Name of the Jenkins Job |
buildNumber |
number | Build number to fetch artifacts |
writer |
module:api/streamLogs.logStream | Stream to write logs |
callback |
module:api/streamLogs.streamLogsCallback | Callback to call |
- Source:
Type Definitions
logStream
Properties:
Name | Type | Description |
---|---|---|
log |
function | log msg received from Jenkins |
error |
function | error msg received from Jenkins |
- Source:
streamLogsCallback(error, buildNumber)
Parameters:
Name | Type | Description |
---|---|---|
error |
* | Error, or null if no error |
buildNumber |
number | the build number |
- Source: