From c08e922f65f03f1559361e3f2762b4b5950126b2 Mon Sep 17 00:00:00 2001 From: Vedran Mendelski Date: Mon, 28 Oct 2024 20:55:55 +0100 Subject: [PATCH] fix(ci)_: skip windows build cleanup stage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Windows build pipeline has errors while running: ```sh sh "rm -rf ${env.WORKSPACE}@tmp" ``` In cleanup stage: ```groovy process apparently never started in J:/Users/jenkins/workspace/_prs_windows_x86_64_main_PR-5990@tmp/durable-478fb71e (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer) ``` Related with [Durable Task Plugin](https://plugins.jenkins.io/durable-task/). Signed-off-by: Jakub SokoĊ‚owski --- _assets/ci/Jenkinsfile.desktop | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/_assets/ci/Jenkinsfile.desktop b/_assets/ci/Jenkinsfile.desktop index c7e460c84..8af5d8cb2 100644 --- a/_assets/ci/Jenkinsfile.desktop +++ b/_assets/ci/Jenkinsfile.desktop @@ -110,18 +110,14 @@ pipeline { } } } - stage('Cleanup') { - steps { - script { - cleanTmp() - } - } - } } // stages post { success { script { github.notifyPR(true) } } failure { script { github.notifyPR(false) } } - cleanup { cleanWs() } + cleanup { + cleanWs() + cleanTmp() + } } // post } // pipeline @@ -158,9 +154,8 @@ def shell(cmd) { } def cleanTmp() { - if (env.PLATFORM == 'windows') { - sh "rm -rf ${env.WORKSPACE}@tmp" - } else { + /* Fails on windows due to Durable Task plugin failure. */ + if (env.PLATFORM != 'windows') { dir("${env.WORKSPACE}@tmp") { deleteDir() } } -} \ No newline at end of file +}