Enable deletion of hidden files (#1061)

If this is not done, then once we exit the docker container, the hidden dirs will be owned by root and will not be deletable by the Jenkins process

Deletion process from: https://unix.stackexchange.com/questions/77127/rm-rf-all-files-and-all-hidden-files-without-error/77196
This commit is contained in:
Matt Mitchell 2018-09-25 15:31:21 -07:00 коммит произвёл GitHub
Родитель a5c3e89ef9
Коммит 1578c375fa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -115,7 +115,7 @@ def call(String dockerImageName, String dockerRegistryUrl, String registryCreden
// but this is unlikely. This will probably eventually be fixed on the workspace cleanup
// side of things, so don't worry about it too much
echo "Cleaning workspace ${WORKSPACE}"
sh 'rm -rf *'
sh 'rm -rf ..?* .[!.]* *'
// Use the workspace cleaner now.
cleanWs deleteDirs: true, patterns: [[pattern: '**/*', type: 'INCLUDE']]
}