Fix and update JSON payload for webhook in build scripts

This commit is contained in:
Michael Pavone committed 2019-03-25 23:34:52 -07:00
1 parent 321db7dd21
commit 7193ef551b
2 files changed
+22 -10

No files matched your search

+11 -5
View File
@@ -21,9 +21,9 @@ if [ $result -ne 0 ]; then
{
"title": "Build $name failed!",
"type": "rich",
"description": "Build falied with return code $result stopping $CONTAINER_NAME"
"description": "Build falied with return code $result stopping $CONTAINER_NAME",
"timestamp": "$curdate",
"color": 16711680,
"color": 16711680
}
]
}
@@ -43,12 +43,18 @@ curl -d'@-' -H 'Content-Type: application/json' "$WEBHOOKURL" <<WEBHOOKEOF
{
"embeds": [
{
"title": "New build of $name succeeded!",
"title": "$artifact",
"type": "rich",
"url": "https://www.retrodev.com/blastem/nightlies/$artifact"
"description": "Version: $version"
"url": "https://www.retrodev.com/blastem/nightlies/$artifact",
"description": "New build of $name succeeded!",
"timestamp": "$curdate",
"color": 65280,
"fields": [
{
"name": "Version",
"value": "$version"
}
]
}
]
}
+11 -5
View File
@@ -19,9 +19,9 @@ if [ $result -ne 0 ]; then
{
"title": "Build $name failed!",
"type": "rich",
"description": "Build falied with return code $result"
"description": "Build falied with return code $result",
"timestamp": "$curdate",
"color": 16711680,
"color": 16711680
}
]
}
@@ -38,12 +38,18 @@ curl -d'@-' -H 'Content-Type: application/json' "$WEBHOOKURL" <<WEBHOOKEOF
{
"embeds": [
{
"title": "New build of $name succeeded!",
"title": "$artifact",
"type": "rich",
"url": "https://www.retrodev.com/blastem/nightlies/$artifact"
"description": "Version: $version"
"url": "https://www.retrodev.com/blastem/nightlies/$artifact",
"description": "New build of $name succeeded!",
"timestamp": "$curdate",
"color": 65280,
"fields": [
{
"name": "Version",
"value": "$version"
}
]
}
]
}