From c8ad8b75bea66051dec98a71c5fea5ce6d363a4f Mon Sep 17 00:00:00 2001 From: Teemu Patja Date: Fri, 27 Oct 2017 21:53:16 +0300 Subject: [PATCH] SOB URL + steps for slack notifying build failure --- src/commiteth_pipeline/steps.clj | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/commiteth_pipeline/steps.clj b/src/commiteth_pipeline/steps.clj index e5f81f5..5bc7683 100644 --- a/src/commiteth_pipeline/steps.clj +++ b/src/commiteth_pipeline/steps.clj @@ -54,7 +54,24 @@ (defn slack-notify-develop [args ctx] (let [rev (:revision args) sha (if rev (subs rev 0 7) "") - msg (format "Deployed revision (develop branch) to https://commiteth.com:444" sha sha)] + msg (format "Deployed revision (develop branch) to https://openbounty.status.im:444" sha sha)] + (println "Sending slack notification" msg) + (slack/slack-notify msg) + {:status :success})) + + +(defn slack-notify-failure-master [args ctx] + (let [rev (:revision args) + sha (if rev (subs rev 0 7) "") + msg (format "Failed to build revision (master branch)" sha sha)] + (println "Sending slack notification" msg) + (slack/slack-notify msg) + {:status :success})) + +(defn slack-notify-failure-develop [args ctx] + (let [rev (:revision args) + sha (if rev (subs rev 0 7) "") + msg (format "Failed to build revision (develop branch)" sha sha)] (println "Sending slack notification" msg) (slack/slack-notify msg) {:status :success}))