Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,22 @@ looking. You've came to the right place.
when: on_failure
```

1. (Optional) If you want a notification before the pipeline started, add these lines, in their appropiate locations on the `.gitlab-ci.yml`

```yaml
stages:
- build
- deploy # adjust with your deployment stage
- notification # this is the after-build notification

start_build:
stage: build
script:
- wget "https://gitlab.assemblrworld.com/api/v4/projects/92/repository/files/send.sh/raw?ref=master&private_token=YCTyexwYkcpV77GQsJgu" -O send.sh
- chmod +x send.sh
- ./send.sh building $WEBHOOK_URL
```

1. Grab your coffee ☕ and enjoy! And, if you liked this, please ⭐**Star**
this repository to show your love.

Expand Down
6 changes: 6 additions & 0 deletions send.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/bash

case $1 in
"building" )
EMBED_COLOR=1796534
STATUS_MESSAGE="Building"
ARTIFACT_URL="Not available"
;;

"success" )
EMBED_COLOR=3066993
STATUS_MESSAGE="Passed"
Expand Down