Sha256: 6832701fb0ea0a8dfae8892f176852c55cde9bb04eb908b241c1f50f5c248c37
Contents?: true
Size: 509 Bytes
Versions: 6
Compression:
Stored size: 509 Bytes
Contents
#!/bin/bash # Sends Slack notification ERROR_MSG to CHANNEL # An env. variable CI_SLACK_WEBHOOK_URL needs to be set. CHANNEL=$1 ERROR_MSG=$2 if [ -z "$CHANNEL" ] || [ -z "$ERROR_MSG" ] || [ -z "$CI_SLACK_WEBHOOK_URL" ]; then echo "Missing argument(s) - Use: $0 channel message" echo "and set CI_SLACK_WEBHOOK_URL environment variable." else curl -X POST --data-urlencode 'payload={"channel": "'"$CHANNEL"'", "username": "GitLab-QA Builder", "text": "'"$ERROR_MSG"'"}' "$CI_SLACK_WEBHOOK_URL" fi
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
gitlab-qa-0.3.0 | bin/slack |
gitlab-qa-0.2.2 | bin/slack |
gitlab-qa-0.2.1 | bin/slack |
gitlab-qa-0.2.0 | bin/slack |
gitlab-qa-0.1.0 | bin/slack |
gitlab-qa-0.0.1 | bin/slack |