Usage:
- Copy the script at the root of your project (as send.sh)
- Define a global variable for WEBHOOK_URL
- Create according jobs for notifications
- Modify/Create rules for execution of each notification job
Example notification stage
stages:
- notification
success_notification:
stage: notification
script:
- chmod +x send.sh
- ./send.sh success $WEBHOOK_URL
when: on_success
failure_notification:
stage: notification
script:
- chmod +x send.sh
- ./send.sh failure $WEBHOOK_URL
when: on_failure
Discord Script to be used in pipeline
[Read More]