Browse Source

try deleteDir instead of bat script for cleaning ws

pull/5/head
JT 1 year ago
parent
commit
85497a7e4a
  1. 4
      Jenkinsfile

4
Jenkinsfile vendored

@ -4,9 +4,7 @@ node("Windows") {
def version = "" def version = ""
stage('Clean') { stage('Clean') {
bat """set folder="${env.WORKSPACE}" deleteDir()
cd /d %folder%
for /F "delims=" %%i in (\'dir /b\') do (rmdir "%%i" /s/q || del "%%i" /s/q)"""
} }
stage('Checkout') { stage('Checkout') {

Loading…
Cancel
Save