fix v5
This commit is contained in:
parent
063877f3dd
commit
3a9fb12a98
2 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue