This deleteDir() does not always work on a Windows build slave.

Using Scripted PIpeline I am declaring a node within try-catch-finally.
The finally will run deleteDir(), in order to delete the build workspace. 
This is done in order to get a fresh build each time. I cannot risk having 
stale data lying around from a previous builds.

Is there some other means I can make sure that the build has a clean 
workspace?

1) Always build with clean
mvn clean deploy
gradle clean build publish

2) SCM configuration
*Clean after checkout*
*Clean before checkout*

*3) Windows working deleteDir()*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/966a8838-f95a-4c23-ac61-e4c7356fac8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to