public void completed(AbstractBuild r) { Result result = r.getResult(); if ((result == Result.ABORTED && notifier.getNotifyAborted()) || (result == Result.FAILURE && notifier.getNotifyFailure()) || (result == Result.NOT_BUILT && notifier.getNotifyNotBuilt()) || (result == Result.SUCCESS && notifier.getNotifySuccess()) || (result == Result.UNSTABLE && notifier.getNotifyUnstable())) { getKato(r).publish(getBuildStatusMessage(r), getBuildColor(r)); } }
private void notifyStart(AbstractBuild build, String message) { if (notifier.getStartNotification()) getKato(build).publish(message, "green"); }
private KatoService getKato(AbstractBuild r) { return notifier.newKatoService(); }