This commit is contained in:
Ivan Nikolaev-Axenov 2025-03-21 11:17:30 +03:00
parent 063877f3dd
commit 3a9fb12a98
2 changed files with 2 additions and 1 deletions

View file

@ -54,6 +54,7 @@ test:
script:
- echo "Installing maven and python" && apk update && apk add maven python3
- echo "Copying jar files to clearing-all/bin" && cp -r /builds/mfd/clearing/z-distr/target/clearing/bin ./clr_test/clearing-all/bin
- echo "Removing old logs folder artifacts/logs" && rm -rf artifacts/logs
- python3 clr_test/run_test_docker_containers.py
- echo "Copying logs" && mkdir -p artifacts/logs && docker run --rm -v clr_test_logs_volume:/logs alpine tar -C /logs -cf - . | tar -C artifacts/logs -xf -
- echo "Cleaning up log volume" && docker volume rm clr_test_logs_volume

View file

@ -111,7 +111,7 @@ then
fi
# Move the copied logs into the artifact location
mkdir -p "./bin/log_artifacts/${CLR_TEST_NAME}"
mkdir -p "./bin/log_artifacts/${CLR_TEST_NAME}" || rm -rf "./bin/log_artifacts/${CLR_TEST_NAME}/*"
mv ./bin/tmp_log_artifact/* "./bin/log_artifacts/${CLR_TEST_NAME}"
else
echo "CLR_TEST_NAME is not set. Skipping log copy."