コード例 #1
0
 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));
   }
 }
コード例 #2
0
 private void notifyStart(AbstractBuild build, String message) {
   if (notifier.getStartNotification()) getKato(build).publish(message, "green");
 }
コード例 #3
0
 private KatoService getKato(AbstractBuild r) {
   return notifier.newKatoService();
 }