Fix circleci node 4 failure (#16236)

* fix circleci failure

* remove debug

* fix
This commit is contained in:
William Cheng
2023-08-02 15:13:13 +08:00
committed by GitHub
parent 0ce1fef016
commit d67f5ddeff
2 changed files with 3 additions and 12 deletions

View File

@@ -9,15 +9,6 @@ set -e
export NODE_ENV=test
function cleanup {
# Show logs of 'petstore.swagger' container to troubleshoot Unit Test failures, if any.
if [ "$NODE_INDEX" != "4" ]; then
docker logs petstore.swagger # container name specified in circle.yml
fi
}
trap cleanup EXIT
if [ "$NODE_INDEX" = "1" ]; then
echo "Running node $NODE_INDEX to test 'samples.circleci' defined in pom.xml ..."
java -version