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}))