Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /.gitlab/ci/notify.gitlab-ci.yml
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to '.gitlab/ci/notify.gitlab-ci.yml')
-rw-r--r--.gitlab/ci/notify.gitlab-ci.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/.gitlab/ci/notify.gitlab-ci.yml b/.gitlab/ci/notify.gitlab-ci.yml
new file mode 100644
index 00000000000..fcdd5ee97d2
--- /dev/null
+++ b/.gitlab/ci/notify.gitlab-ci.yml
@@ -0,0 +1,23 @@
+.notify-slack:
+ image: alpine
+ stage: notify
+ dependencies: []
+ cache: {}
+ before_script:
+ - apk update && apk add git curl bash
+
+notify-update-gitaly:
+ extends:
+ - .notify-slack
+ rules:
+ - if: '$CI_MERGE_REQUEST_IID && $CI_COMMIT_BRANCH == $GITALY_UPDATE_BRANCH'
+ when: on_failure
+ allow_failure: true
+ variables:
+ NOTIFY_CHANNEL: g_create_gitaly
+ GITALY_UPDATE_BRANCH: release-tools/update-gitaly
+ MERGE_REQUEST_URL: ${CI_MERGE_REQUEST_PROJECT_URL}/-/merge_requests/${CI_MERGE_REQUEST_IID}
+ script:
+ - echo "NOTIFY_CHANNEL is ${NOTIFY_CHANNEL}"
+ - echo "CI_PIPELINE_URL is ${CI_PIPELINE_URL}"
+ - scripts/slack ${NOTIFY_CHANNEL} "☠️ \`${GITALY_UPDATE_BRANCH}\` failed! ☠️ See ${CI_PIPELINE_URL} (triggered from ${MERGE_REQUEST_URL})" ci_failing