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:
parent
768cda8de9
commit
c08e922f65
|
@ -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() }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue