Commit c4e71261 authored by Christian Kuhn's avatar Christian Kuhn
Browse files

[TASK] gitlab-ci nightly slack notification

Resolves: #93592
Releases: master, 10.4, 9.5
Change-Id: If851b9264d7d9e3b2a18df49d2c445f034aa5a80
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68119

Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 4eee7f08
......@@ -36,13 +36,14 @@ stages:
# Stages for pre-merge
- early
- main
- notify
# Stages for nightly
- integrity
- unit
- acceptance
- functional
- functional2
# Notify gerrit-adapter as last pipeline stage
- notify
include:
# Pre-merge tests are triggered by pushing to changes to gerrit.
......@@ -61,3 +62,4 @@ include:
- local: 'Build/gitlab-ci/nightly/acceptance-install.yml'
- local: 'Build/gitlab-ci/nightly/acceptance-backend.yml'
- local: 'Build/gitlab-ci/nightly/functional.yml'
- local: 'Build/gitlab-ci/nightly/notify.yml'
slack notification success:
stage: notify
only:
- schedules
when: on_success
script: |
curl -X POST \
--header "cache-control: no-cache" \
--header "content-type: application/json" \
--data "{ \
\"branch\": \"$CI_COMMIT_REF_NAME\", \
\"pipeline\": \"$CI_PIPELINE_URL\", \
\"status\": \"success\" \
}" \
https://gerrit-adapter.core.b13.dev/gitlab-nightly
slack notification failed:
stage: notify
only:
- schedules
when: on_failure
script: |
curl -X POST \
--header "cache-control: no-cache" \
--header "content-type: application/json" \
--data "{ \
\"branch\": \"$CI_COMMIT_REF_NAME\", \
\"pipeline\": \"$CI_PIPELINE_URL\", \
\"status\": \"failed\" \
}" \
https://gerrit-adapter.core.b13.dev/gitlab-nightly
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment