From 97b02e1f04208b5c4f388366d3b865e5cfad8495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 8 Mar 2024 17:59:47 +0100 Subject: [PATCH] chore(ci): do full Windows workspace cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If we don't we regularly get weird Git failures on Windows like: ``` fatal: Unable to find current revision in submodule path 'vendor/qzxing/tests/resources' fatal: Failed to recurse into submodule path 'vendor/qzxing' ``` Or ``` stderr: fatal: Unable to create '.../.git/index.lock': File exists. ``` Which are very annoying and require manual workspace purge by infra team. Many of you will get annoyed with resulting slower checkouts on subsequent builds, but that's a price I'm willing to pay. Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.windows | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/Jenkinsfile.windows b/ci/Jenkinsfile.windows index 2b264a459f..90d7525039 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -118,7 +118,7 @@ pipeline { post { success { script { github.notifyPR(true) } } failure { script { github.notifyPR(false) } } - cleanup { sh './scripts/clean-git.sh' } + cleanup { cleanWs() } } }