]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-windows: Cleanup logs dir before collecting new logs 2078/head
authorIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Wed, 21 Sep 2022 09:45:45 +0000 (12:45 +0300)
committerIonut Balutoiu <ibalutoiu@cloudbasesolutions.com>
Wed, 21 Sep 2022 09:53:02 +0000 (12:53 +0300)
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 <ibalutoiu@cloudbasesolutions.com>
scripts/ceph-windows/run_tests

index e407096603c588ecfa15992ebf671da404987bd5..d194e044451730c7f98a380aae9256a1db78da0b 100644 (file)
@@ -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