ci: print sauce-connect log output on timeout (#29084)
Currently when `sauce-connect` times out after 2min, we just print a message saying that the SauceLabs tunnel didn't establish within 2min. In order to make debugging easier, we now print the full log file output on failure. PR Close #29084
This commit is contained in:

committed by
Andrew Kushnir

parent
842d615928
commit
43ce6ec84a
@ -7,6 +7,11 @@ readonly currentDir=$(cd $(dirname $0); pwd)
|
||||
# Command arguments that will be passed to sauce-connect.
|
||||
sauceArgs=""
|
||||
|
||||
if [[ ! -z "${SAUCE_LOG_FILE:-}" ]]; then
|
||||
mkdir -p $(dirname ${SAUCE_LOG_FILE})
|
||||
sauceArgs="${sauceArgs} --logfile ${SAUCE_LOG_FILE}"
|
||||
fi
|
||||
|
||||
if [[ ! -z "${SAUCE_READY_FILE:-}" ]]; then
|
||||
mkdir -p $(dirname ${SAUCE_READY_FILE})
|
||||
sauceArgs="${sauceArgs} --readyfile ${SAUCE_READY_FILE}"
|
||||
|
Reference in New Issue
Block a user