From e11d522e8e6c6e002d1e97c22e9c37fb853886e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 19 Oct 2022 18:09:08 +0200 Subject: [PATCH] ci: disable deferred wipeout for Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A potential partial fix found for an issue found in: https://github.com/status-im/status-desktop/pull/7789 Where an incomplete broken checkout of a `vendor` module which crated a `.git` file instead of a directory in `vendor/nimPNG` caused the error: ``` $ git submodule update --init --recursive vendor/nimPNG fatal: Needed a single revision Unable to find current revision in submodule path '../nimPNG' ``` Which then was not correctly cleaned up and in turn caused error: ``` org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing Perhaps you forgot to surround the code with a step that provides this, such as: node, dockerNode ... ``` The last known successful CI build for that PR showed in logs: ``` 00:05:13 [WS-CLEANUP] Deleting project workspace... 00:05:13 [WS-CLEANUP] Deferred wipeout is used... 00:05:13 [WS-CLEANUP] done ``` Which means the `Workspace Cleanup` plugin uses the `Resource Disposer` plugin to wipe the workspaace in the background, which could potentially fail: https://plugins.jenkins.io/ws-cleanup/#plugin-content-deferred-wipeout 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 e230f906ec..184212e0ce 100644 --- a/ci/Jenkinsfile.windows +++ b/ci/Jenkinsfile.windows @@ -99,6 +99,6 @@ pipeline { post { success { script { github.notifyPR(true) } } failure { script { github.notifyPR(false) } } - always { cleanWs() } + always { cleanWs(disableDeferredWipeout: true) } } }