pittmesh / pittmesh.net

The web site for PittMesh.net
http://www.PittMesh.net
11 stars 1 forks source link

Set up Mattermost webhook for Travis #172

Closed colindean closed 6 years ago

colindean commented 6 years ago

The call should probably go in the after_script section of .travis.yml and look something like this:

curl -i -X POST -H 'Content-Type: application/json' \
  -d "$(jo channel=general-internal-chat username=travis-ci icon_url=https://travis-ci.com/images/logos/TravisCI-Mascot-1.png text="## This is a test\nThis is only a test")" \
  https://mm.example.org/hooks/XXXXXXXX

This is also worth considering: https://github.com/chatnhook/chatnhook

colindean commented 6 years ago

This will also require getting jo into Travis.

colindean commented 6 years ago

Theoretically b4ac541 should close this

colindean commented 6 years ago

This is done and working!