$ npm install --save-dev gulp-teamcity-reporterrequire('gulp-teamcity-reporter').wireTaskEvents(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
}Type: boolean
Default: false
Set it to true to send buildStatisticValue output of the task run time in milliseconds.
Type: boolean
Default: false
Set it to true to force TeamCity-formated output, even if a TeamCity execution context was not detected.
Wire TeamCity-formatted logging into Gulp's events for task start, stop, and error.
teamCityReporter.wireTaskEvents(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'));