jenkins-log-stream
v2.0.0
Published
Stream the console output of a Jenkins job
Downloads
8
Maintainers
Readme
jenkins-log-stream
Stream the output of a Jenkins build
Install
$ npm install --save jenkins-log-streamUsage
var JenkinsLogStream = require('jenkins-log-stream');
var stream = new JenkinsLogStream({
'baseUrl': 'http://user:[email protected]:8080',
'job': 'jenkins-job',
'build': 'lastBuild',
'pollInterval': 1000
});
stream.pipe(process.stdout);Options
baseUrlThe Jenkins base URL, including the username and password, and also the port if it is not 80. Required.jobThe name of the Jenkins job. Required.buildThe id of the build, a numeric value or'lastBuild'for the last build. Defaults to'lastBuild'.pollIntervalInteger to specify how often to poll the Jenkins server, in milliseconds. Defaults to 1000, i.e. one second.
License
MIT @ R consortium
