devops: prettify telegram messages
This commit is contained in:
parent
42c2cfc7cc
commit
871235939e
|
|
@ -121,10 +121,9 @@ fi
|
||||||
cd -
|
cd -
|
||||||
|
|
||||||
source ./buildbots/send_telegram_message.sh
|
source ./buildbots/send_telegram_message.sh
|
||||||
LAST_COMMIT_MESSAGE=$(git log --format=%s -n 1 HEAD -- ./$BROWSER_NAME/BUILD_NUMBER)
|
BUILD_ALIAS="$BUILD_FLAVOR r$BUILD_NUMBER"
|
||||||
BUILD_ALIAS="<b>[[$BUILD_FLAVOR r$BUILD_NUMBER]]</b> $LAST_COMMIT_MESSAGE"
|
|
||||||
|
|
||||||
send_telegram_message "$BUILD_ALIAS -- started ⏳"
|
send_telegram_message "$BUILD_ALIAS -- started"
|
||||||
|
|
||||||
if [[ "$BUILD_FLAVOR" == "webkit-gtk-wpe" ]]; then
|
if [[ "$BUILD_FLAVOR" == "webkit-gtk-wpe" ]]; then
|
||||||
echo "-- combining binaries together"
|
echo "-- combining binaries together"
|
||||||
|
|
@ -164,4 +163,12 @@ if ! ./upload.sh $BUILD_FLAVOR $ZIP_PATH; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
UPLOAD_SIZE=$(du -h "$ZIP_PATH" | awk '{print $1}')
|
UPLOAD_SIZE=$(du -h "$ZIP_PATH" | awk '{print $1}')
|
||||||
send_telegram_message "$BUILD_ALIAS -- $UPLOAD_SIZE uploaded ✅"
|
send_telegram_message "$BUILD_ALIAS -- $UPLOAD_SIZE uploaded"
|
||||||
|
|
||||||
|
if ./tools/check_cdn.sh $BROWSER_NAME --has-all-builds; then
|
||||||
|
LAST_COMMIT_MESSAGE=$(git log --format=%s -n 1 HEAD -- ./$BROWSER_NAME/BUILD_NUMBER)
|
||||||
|
send_telegram_message "<b>$BROWSER_NAME r${BUILD_NUMBER} COMPLETE! ✅</b> $LAST_COMMIT_MESSAGE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,10 @@ set -e
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
if [[ ($1 == '--help') || ($1 == '-h') ]]; then
|
||||||
echo "usage: $(basename $0) [firefox|webkit] [--full-history]"
|
echo "usage: $(basename $0) [firefox|webkit] [--full-history] [--has-all-builds]"
|
||||||
echo
|
echo
|
||||||
echo "List CDN status for browser"
|
echo "List CDN status for browser"
|
||||||
|
echo
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -75,6 +76,16 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $* == *--has-all-builds ]]; then
|
||||||
|
for i in "${ARCHIVES[@]}"; do
|
||||||
|
URL=$(printf $i $REVISION)
|
||||||
|
if ! [[ $(curl -s -L -I $URL | head -1 | cut -f2 -d' ') == 200 ]]; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
done;
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
STOP_REVISION=$((REVISION - 3))
|
STOP_REVISION=$((REVISION - 3))
|
||||||
if [[ $* == *--full-history* ]]; then
|
if [[ $* == *--full-history* ]]; then
|
||||||
STOP_REVISION=0
|
STOP_REVISION=0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue