-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
wsCleanup 0.36 and Jenkins ver. 2.138.2
Jenkins node is Fedora 28
We are using pipeline and at the end of the pipeline we have a stage as below. We added the disableDeferredWipeout recently to make sure that all disk space of the workspace is reclaimed before the job ends. We now notice that the workspace is not deleted anymore, when we remove the disableDeferredWipeout the workspace directory is gone again. Have tried to find some logs but can't find anything.
stage('Post cleanup') {
step([$class: 'WsCleanup', disableDeferredWipeout: true])
}
In the log we only get the message below but at the end the workspace is still there
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is disabled by the job configuration...
[WS-CLEANUP] done
As reproducer you can use the pipeline job below, only adapt the node argument. After the pipeline job has finished we would expect to have an empty workspace but with disableDeferredWipeout:true the buildtools directory is still there, without the argument the workspace is deleted
node('Scarab_fc28_x86_64_01') {
stage('Pre cleanup')
stage('Buildtools checkout') {
dir ('buildtools')
}
stage('Post cleanup')
{ cleanWs disableDeferredWipeout:true // cleanWs() }}
- is related to
-
JENKINS-55443 Unable to delete Workspace on SSH Slave with Pipeline
- Fixed but Unreleased