2020-08-07 17:10:07 -04:00
|
|
|
.notify-slack:
|
2021-02-03 13:09:25 -05:00
|
|
|
image: ${GITLAB_DEPENDENCY_PROXY}alpine
|
2020-08-07 17:10:07 -04:00
|
|
|
stage: notify
|
|
|
|
dependencies: []
|
|
|
|
cache: {}
|
2020-10-08 08:08:31 -04:00
|
|
|
variables:
|
|
|
|
MERGE_REQUEST_URL: ${CI_MERGE_REQUEST_PROJECT_URL}/-/merge_requests/${CI_MERGE_REQUEST_IID}
|
2020-08-07 17:10:07 -04:00
|
|
|
before_script:
|
|
|
|
- apk update && apk add git curl bash
|
2022-08-26 17:10:03 -04:00
|
|
|
- echo "NOTIFY_CHANNEL is ${NOTIFY_CHANNEL}"
|
|
|
|
- echo "CI_PIPELINE_URL is ${CI_PIPELINE_URL}"
|
2020-08-07 17:10:07 -04:00
|
|
|
|
|
|
|
notify-update-gitaly:
|
|
|
|
extends:
|
|
|
|
- .notify-slack
|
|
|
|
rules:
|
2020-09-16 11:09:32 -04:00
|
|
|
- if: '$CI_MERGE_REQUEST_SOURCE_BRANCH_NAME == $GITALY_UPDATE_BRANCH'
|
2020-08-07 17:10:07 -04:00
|
|
|
when: on_failure
|
|
|
|
allow_failure: true
|
|
|
|
variables:
|
2022-08-17 20:11:02 -04:00
|
|
|
NOTIFY_CHANNEL: g_gitaly
|
2020-08-07 17:10:07 -04:00
|
|
|
GITALY_UPDATE_BRANCH: release-tools/update-gitaly
|
|
|
|
script:
|
2020-10-08 08:08:31 -04:00
|
|
|
- scripts/slack ${NOTIFY_CHANNEL} "☠️ \`${GITALY_UPDATE_BRANCH}\` failed! ☠️ See ${CI_PIPELINE_URL} (triggered from ${MERGE_REQUEST_URL})" ci_failing "GitLab QA Bot"
|
|
|
|
|
|
|
|
notify-security-pipeline:
|
|
|
|
extends:
|
|
|
|
- .notify-slack
|
|
|
|
- .delivery:rules:security-pipeline-merge-result-failure
|
|
|
|
variables:
|
|
|
|
NOTIFY_CHANNEL: f_upcoming_release
|
|
|
|
script:
|
|
|
|
# <!subteam^S0127FU8PDE> mentions the `@release-managers` group
|
|
|
|
- scripts/slack ${NOTIFY_CHANNEL} "<!subteam^S0127FU8PDE> ☠️ Pipeline for merged result failed! ☠️ See ${CI_PIPELINE_URL} (triggered from ${MERGE_REQUEST_URL})" ci_failing "GitLab Release Tools Bot"
|
2022-08-26 17:10:03 -04:00
|
|
|
|
|
|
|
notify-pipeline-failure:
|
|
|
|
extends:
|
|
|
|
- .notify-slack
|
|
|
|
rules:
|
|
|
|
- if: '$NOTIFY_PIPELINE_FAILURE_CHANNEL'
|
|
|
|
when: on_failure
|
|
|
|
allow_failure: true
|
|
|
|
variables:
|
|
|
|
NOTIFY_CHANNEL: "${NOTIFY_PIPELINE_FAILURE_CHANNEL}"
|
|
|
|
script:
|
|
|
|
- scripts/slack ${NOTIFY_CHANNEL} "❌ `${CI_COMMIT_REF_NAME}` pipeline failed! See ${CI_PIPELINE_URL}" ci_failing "notify-pipeline-failure"
|