File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -311,12 +311,12 @@ send_telegram_message "$BUILD_ALIAS -- started"
311
311
312
312
if generate_and_upload_browser_build 2>&1 | ./sanitize_and_compress_log.js $LOG_PATH ; then
313
313
# Report successful build. Note: we don't know how to get zip size on MINGW.
314
- if [[ $( uname) == MINGW* ]]; then
315
- send_telegram_message " $BUILD_ALIAS -- uploaded"
316
- else
317
- UPLOAD_SIZE=$( du -h " $ZIP_PATH " | awk ' {print $1}' )
318
- send_telegram_message " $BUILD_ALIAS -- $UPLOAD_SIZE uploaded"
314
+ UPLOAD_SIZE=" "
315
+ if command -v du > /dev/null && command -v awk > /dev/null; then
316
+ UPLOAD_SIZE=" $( du -h " $ZIP_PATH " | awk ' {print $1}' ) "
319
317
fi
318
+ send_telegram_message " $BUILD_ALIAS -- ${UPLOAD_SIZE} uploaded"
319
+
320
320
# Check if we uploaded the last build.
321
321
if ./tools/check_cdn.sh $BROWSER_NAME --has-all-builds; then
322
322
LAST_COMMIT_MESSAGE=$( git log --format=%s -n 1 HEAD -- ./$BROWSER_NAME /BUILD_NUMBER)
344
344
# Upload logs only in case of failure and report failure.
345
345
./upload.sh ${LOG_BLOB_PATH} ${LOG_PATH} || true
346
346
send_telegram_message " $BUILD_ALIAS -- ${FAILED_STEP} failed! ❌ <a href='https://playwright.azureedge.net/builds/${LOG_BLOB_PATH} '>${LOG_BLOB_NAME} </a>"
347
+ exit 1
347
348
fi
348
349
You can’t perform that action at this time.
0 commit comments