UNPKG

teamcity-service-messages

Version:
49 lines (45 loc) 861 B
var Message = exports.Message = require('./lib/message'); exports.stdout = true; exports.autoFlowId = true; [ 'blockClosed', 'blockOpened', 'buildNumber', 'buildProblem', 'buildStatisticValue', 'buildStatus', 'compilationFinished', 'compilationStarted', 'disableServiceMessages', 'enableServiceMessages', 'importData', 'inspectionType', 'inspection', 'message', 'progressFinish', 'progressMessage', 'progressStart', 'publishArtifacts', 'setParameter', 'testFailed', 'testFinished', 'testIgnored', 'testMetadata', 'testStarted', 'testStdErr', 'testStdOut', 'testSuiteFinished', 'testSuiteStarted' ] .forEach(function (message) { exports[message] = function (args) { var output = new Message(message, args).toString(); if (exports.stdout) { console.log(output); return exports; } else { return output; } }; });