ci: add deleteDirs:true for cleanWs to fix cleanup

This is a continuation of a fix done in:
https://github.com/status-im/status-desktop/pull/7968

This adds `deleteDirs` option to delete the whole workspace:

>When deferred wipeout is disabled, the old implementation of
>filesystem content deletion is used. If you want the same
>behavior as with deferred wipeout, you have to set the plugin
>attribute `deleteDirs` to true as well.

https://github.com/jenkinsci/ws-cleanup-plugin#deferred-wipeout

Because otherwise the `vendor` folder remains and causes
issues when `.git` is a file.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-10-26 12:00:39 +02:00
parent 4f60c31282
commit b5e317db4d
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 1 additions and 1 deletions

View File

@ -99,6 +99,6 @@ pipeline {
post {
success { script { github.notifyPR(true) } }
failure { script { github.notifyPR(false) } }
cleanup { cleanWs(disableDeferredWipeout: true) }
cleanup { cleanWs(disableDeferredWipeout: true, deleteDirs: true) }
}
}