Skip to content

Commit

Permalink
fix(ci)_: skip windows build cleanup stage
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mendelskiv93 authored and jakubgs committed Oct 30, 2024
1 parent 768cda8 commit c08e922
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions _assets/ci/Jenkinsfile.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

0 comments on commit c08e922

Please sign in to comment.