ci: dump logs when failed to stop

This commit is contained in:
Zaiming (Stone) Shi 2022-02-11 13:07:44 +01:00
parent 992e7e66cf
commit 28508e23ec
2 changed files with 12 additions and 2 deletions

View File

@ -153,7 +153,12 @@ relup_test(){
./emqx/bin/emqx install "${TARGET_VERSION}"
[ "$(./emqx/bin/emqx versions |grep permanent | awk '{print $2}')" = "${TARGET_VERSION}" ] || exit 1
./emqx/bin/emqx_ctl status
./emqx/bin/emqx stop
if ! ./emqx/bin/emqx stop; then
cat emqx/log/erlang.log.1 || true
cat emqx/log/emqx.log.1 || true
echo "failed to stop emqx"
exit 1
fi
rm -rf emqx
done
fi

View File

@ -195,7 +195,12 @@ jobs:
exit 1
fi
./emqx/bin/emqx_ctl status
./emqx/bin/emqx stop
if ! ./emqx/bin/emqx stop; then
cat emqx/log/erlang.log.1 || true
cat emqx/log/emqx.log.1 || true
echo "failed to stop emqx"
exit 1
fi
rm -rf emqx
openssl dgst -sha256 ./_packages/${{ matrix.profile }}/$pkg_name | awk '{print $2}' > ./_packages/${{ matrix.profile }}/$pkg_name.sha256
- uses: actions/upload-artifact@v1