Skip to content

PaulMH/jenkins-log-stream

This branch is 6 commits behind r-hub/jenkins-log-stream:master.

Repository files navigation

jenkins-log-stream

Stream the output of a Jenkins build

Install

$ npm install --save jenkins-log-stream

Usage

var JenkinsLogStream = require('jenkins-log-sream');
var stream = new JenkinsLogStream({
  'baseUrl': 'http://user:pass@jenkins.server:8080',
  'job': 'jenkins-job',
  'build': 'lastBuild',
  'pollInterval': 1000
});

stream.pipe(process.stdout);

Options

  • baseUrl The Jenkins base URL, including the username and password, and also the port if it is not 80. Required.
  • job The name of the Jenkins job. Required.
  • build The id of the build, a numeric value or 'lastBuild' for the last build. Defaults to 'lastBuild'.
  • pollInterval Integer to specify how often to poll the Jenkins server, in milliseconds. Defaults to 1000, i.e. one second.

License

MIT @ R consortium

About

Stream the output of a Jenkins job

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%