mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-28 23:26:17 +00:00
23 lines
436 B
JavaScript
23 lines
436 B
JavaScript
'use strict';
|
|
|
|
var BaseTransport = require('./base').Transport,
|
|
inherits = require('util').inherits;
|
|
|
|
function Transport() {
|
|
}
|
|
|
|
inherits(Transport, BaseTransport);
|
|
|
|
exports.Transport = Transport;
|
|
|
|
Transport.prototype.send = function(params, callback) {
|
|
var build = params.build;
|
|
console.log(
|
|
'NOTIFY on %s: build #%s of project %s is %s',
|
|
params.notifyReason.strategy,
|
|
build.number,
|
|
build.project.name,
|
|
build.status
|
|
);
|
|
};
|