After upgrading to 0.17 the 'Delete workspace before build starts' does not delete the workspace
I created a simple job which creates a test directory - mkdir testing
Selected 'Delete workspace before build starts'
Job runs first time ok as empty workspace.
Second run fails as the 'testing' directory already exists, it should have been deleted.
[EnvInject] - Loading node environment variables.
Building on master in workspace /tr/j/jh/workspace/Test_Delete
Deleting project workspace... done
[Test_Delete] $ bash -xe /tmp/hudson4293487083551039325.sh
+ mkdir testing
mkdir: cannot create directory `testing': File exists
Build step 'Execute shell' marked build as failure
Notifying upstream projects of job completion