2019-11-25 10:06:45 -05:00
.notify :
2019-12-10 07:07:55 -05:00
image : ruby:2.6-alpine
2019-11-25 10:06:45 -05:00
stage : notification
dependencies : [ ]
cache : {}
before_script :
- apk update && apk add git curl bash
2019-12-10 07:07:55 -05:00
- source scripts/utils.sh
- source scripts/notifications.sh
- install_gitlab_gem
2019-11-25 10:06:45 -05:00
variables :
2019-12-10 07:07:55 -05:00
COMMIT_NOTES_URL : "https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}/commit/${CI_COMMIT_SHA}#notes-list"
2019-11-25 10:06:45 -05:00
schedule:package-and-qa:notify-failure :
extends :
- .only:variables_refs-canonical-dot-com-schedules
- .notify
script :
2019-12-10 07:07:55 -05:00
- 'export NOTIFICATION_MESSAGE=":skull_and_crossbones: Scheduled QA against master failed! :skull_and_crossbones: See ${CI_PIPELINE_URL}. For downstream pipelines, see ${COMMIT_NOTES_URL}"'
- 'notify_on_job_failure schedule:package-and-qa qa-master "${NOTIFICATION_MESSAGE}" ci_failing'
2019-11-25 10:06:45 -05:00
needs : [ "schedule:package-and-qa" ]
2019-12-10 07:07:55 -05:00
allow_failure : true
when : always