SOB URL + steps for slack notifying build failure

This commit is contained in:
Teemu Patja 2017-10-27 21:53:16 +03:00
parent 9f9d7c466d
commit c8ad8b75be
No known key found for this signature in database
GPG Key ID: F5B7035E6580FD4C
1 changed files with 18 additions and 1 deletions

View File

@ -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 <https://github.com/status-im/commiteth/commit/%s|%s> (develop branch) to https://commiteth.com:444" sha sha)]
msg (format "Deployed revision <https://github.com/status-im/commiteth/commit/%s|%s> (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 <https://github.com/status-im/commiteth/commit/%s|%s> (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 <https://github.com/status-im/commiteth/commit/%s|%s> (develop branch)" sha sha)]
(println "Sending slack notification" msg)
(slack/slack-notify msg)
{:status :success}))