Skip to content

aranasoft/gulp-teamcity-reporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-teamcity-reporter

Build Status NPM version Dependency Status devDependency Status

Install

$ npm install --save-dev gulp-teamcity-reporter

Usage

require('gulp-teamcity-reporter').wireTaskEvents(options);

Options

const options = {
  sendTaskDuration: true, //send buildStatisticValue of task run time, by default false
  ignoreContext: true     //force TeamCity output, even if env vars are not detected
}

sendTaskDuration

Type: boolean
Default: false

Set it to true to send buildStatisticValue output of the task run time in milliseconds.

ignoreContext

Type: boolean
Default: false

Set it to true to force TeamCity-formated output, even if a TeamCity execution context was not detected.

API

wireTaskEvents([options])

Wire TeamCity-formatted logging into Gulp's events for task start, stop, and error.

teamCityReporter.wireTaskEvents(options);

error([options])

Wire TeamCity-formatted logging into any stream's error event.

src('./src/somefiles.js')
   .pipe(somePlugin().on('error', teamCityReporter.error(options)));
   .pipe(dest('./output'));

License

BSD-3-Clause © Arana Software

About

Display Gulp Log messages in a format consumable by TeamCity

Resources

License

Stars

Watchers

Forks

Packages

No packages published