Skip to content

Add docs for adding webhook to Discord #108

@Luis729

Description

@Luis729

Could be put under Contributing for now, but is a pointer for all NGCP (if it moves to Discord)

Step 1: Add this file to your repo https://github.com/NGCP/GCS/blob/48541a72262c0eff039ff975f979e317db59b2a2/script/webhook.sh

Step 2: (requires Lead+ role) Add webhook in Discord that points to channel to post build status in master branch

ex:
image

Step 3: add webhook url as environment variable as WEBHOOK_URL. Go to https://travis-ci.com/NGCP then click on your repo then More Options > Settings > Environment Variables

image

Step 4: add the following scripts to .travis.yml

# replace path/to/webhook.sh to actual filepath
after_success:
  - chmod +x path/to/webhook.sh
  - ./path/to/webhook.sh success
after_failure:
  - chmod +x path/to/webhook.sh
  - ./path/to/webhook.sh failure

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions