Merge branch 'feature/slacky-builds-v2' into 'master'

Add commit message to slack script

Ass suggested by @rdavila, this adds the current commit message as of HEAD to the slack script.

See merge request !3027
This commit is contained in:
James Lopez
2016-03-01 09:11:00 +00:00
+1 -1
View File
@@ -318,7 +318,7 @@ spinach:other:ruby22:
notify:slack:
stage: notifications
script:
- ./scripts/notify_slack.sh "#builds" "Build on \`$CI_BUILD_REF_NAME\` failed! Check <https://gitlab.com/gitlab-org/$(basename "$PWD")/commit/"$CI_BUILD_REF"/builds>"
- ./scripts/notify_slack.sh "#builds" "Build on \`$CI_BUILD_REF_NAME\` failed! Commit \`$(git log -1 --oneline)\` See <https://gitlab.com/gitlab-org/$(basename "$PWD")/commit/"$CI_BUILD_REF"/builds>"
when: on_failure
only:
- master@gitlab-org/gitlab-ce