From 4f6022c07d90a9008cc21dee8d130133ed2b9a03 Mon Sep 17 00:00:00 2001 From: Ionut Balutoiu Date: Wed, 21 Sep 2022 12:45:45 +0300 Subject: [PATCH] ceph-windows: Cleanup logs dir before collecting new logs We noticed old logs in the Jenkins `ceph-windows-pull-requests` job artifacts. This is very likely due to the fact that there were existing logs from previous runs. Make sure that there are no leftover logs from previous runs by cleaning up the `$WORKSPACE/logs` dir prior to collecting new logs from the Windows tests machine. Signed-off-by: Ionut Balutoiu --- scripts/ceph-windows/run_tests | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/ceph-windows/run_tests b/scripts/ceph-windows/run_tests index e4070966..d194e044 100644 --- a/scripts/ceph-windows/run_tests +++ b/scripts/ceph-windows/run_tests @@ -72,5 +72,6 @@ SSH_TIMEOUT=1h ssh_exec powershell.exe /workspace/repos/ceph-win32-tests/test_ho # # Collect logs # +rm -rf $WORKSPACE/logs mkdir -p $WORKSPACE/logs scp_download /workspace/test_results $WORKSPACE/logs/test_results -- 2.47.3