mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-01-11 11:45:09 +00:00
25 lines
486 B
JavaScript
25 lines
486 B
JavaScript
'use strict';
|
|
|
|
var BaseNotifier = require('./base').Notifier,
|
|
inherits = require('util').inherits;
|
|
|
|
function Notifier() {
|
|
}
|
|
|
|
inherits(Notifier, BaseNotifier);
|
|
|
|
exports.register = function(app) {
|
|
app.lib.notifier.register('console', Notifier);
|
|
};
|
|
|
|
Notifier.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
|
|
);
|
|
};
|