Test pipeline discord notifications
This commit is contained in:
+23
-1
@@ -6,6 +6,7 @@ stages:
|
||||
- gradleSetup
|
||||
- build
|
||||
- merge
|
||||
- sendDiscordNotification
|
||||
|
||||
variables:
|
||||
# Disable the Gradle daemon for Continuous Integration servers as correctness
|
||||
@@ -106,8 +107,29 @@ merge:
|
||||
- Merged
|
||||
expire_in: 1 day
|
||||
|
||||
# forth stage
|
||||
success_notification:
|
||||
image: eclipse-temurin:17
|
||||
stage: sendDiscordNotification
|
||||
script:
|
||||
- apk add --update git curl
|
||||
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
||||
- chmod +x send.sh
|
||||
- /bin/ash ./send.sh success $WEBHOOK_URL
|
||||
when: on_success
|
||||
|
||||
## forth stage
|
||||
failure_notification:
|
||||
image: eclipse-temurin:17
|
||||
stage: sendDiscordNotification
|
||||
script:
|
||||
- apk add --update git curl
|
||||
- wget https://raw.githubusercontent.com/DiscordHooks/gitlab-ci-discord-webhook/master/send.sh
|
||||
- chmod +x send.sh
|
||||
- /bin/ash ./send.sh failure $WEBHOOK_URL
|
||||
when: on_failure
|
||||
|
||||
|
||||
## - stage
|
||||
#deploy:
|
||||
# stage: deploy
|
||||
# image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
|
||||
Reference in New Issue
Block a user