Skip to content

Instantly share code, notes, and snippets.

@ahanoff
Created June 19, 2018 08:36
Show Gist options
  • Save ahanoff/cd0b6c8f47c35d06145452886a273bf6 to your computer and use it in GitHub Desktop.
Save ahanoff/cd0b6c8f47c35d06145452886a273bf6 to your computer and use it in GitHub Desktop.
- provider: Webhook
url: [your stride room url]
method: POST
headers:
Authorization: Bearer [token for room]
content_type: application/json
body: >-
{
"version":1,
"type":"doc",
"content":[
{
"type":"applicationCard",
"attrs":{
"collapsible":true,
"context":{
"icon":{
"label":"AppVeyor CI",
"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Appveyor_logo.svg/220px-Appveyor_logo.svg.png"
},
"text":"Build - {{ projectName }} {{buildVersion}} - completed "
},
"description":{
"text":"Author: {{commitAuthor}} Commit:{{commitId}}"
},
"link": {
"url": "{{buildUrl}}"
},
"details":[
{
"lozenge":{
"appearance":"removed",
"text":"BUILD FAILED"
}
},
{
"lozenge":{
"appearance":"removed",
"text":"{{branch}}"
},
"title":"Branch"
}
],
"text":"{{commitMessage}}",
"title":{
"text":"{{commitMessage}}",
"user":{
"icon":{
"url":"https://upload.wikimedia.org/wikipedia/commons/thumb/b/bc/Appveyor_logo.svg/220px-Appveyor_logo.svg.png",
"label":"BUILD FAILED"
}
}
}
}
}
]
}
on_build_success: false
on_build_failure: true
on_build_status_changed: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment