fix(ci)_: skip windows build cleanup stage

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 <jakub@status.im>
This commit is contained in:
Vedran Mendelski 2024-10-28 20:55:55 +01:00 committed by Jakub Sokołowski
parent 768cda8de9
commit c08e922f65
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
1 changed files with 7 additions and 12 deletions

View File

@ -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() }
}
}