From 321db7dd21f1f1621af35cdeec48a86d666adbe4 Mon Sep 17 00:00:00 2001 From: Michael Pavone Date: Mon, 25 Mar 2019 23:13:08 -0700 Subject: Post build results to discord via webhook --- build_upload_nightly | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'build_upload_nightly') diff --git a/build_upload_nightly b/build_upload_nightly index aa52cb0..22a5d0f 100755 --- a/build_upload_nightly +++ b/build_upload_nightly @@ -14,6 +14,20 @@ result=$? if [ $result -ne 0 ]; then echo Build falied with return code $result stopping $CONTAINER_NAME lxc-stop -n "$CONTAINER_NAME" + curdate=`date -Iseconds` + curl -d'@-' -H 'Content-Type: application/json' "$WEBHOOKURL" <