Skip to content

Commit 5916e15

Browse files
authored
Pre stage pipeline fix (#564)
Fixes the occasional problem where the find command ends up deleting the whole parent directory, and cause the pipeline to immediately fail. Adding the mindepth flag prevents that from happening.
1 parent 23c49e9 commit 5916e15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ pnnl_cleanup:
199199
- |
200200
set -xv
201201
export WORKDIR="$HOME/gitlab/"
202-
find $WORKDIR -type d -mmin +360 -prune -print -exec rm -rf {} \; || true
202+
find $WORKDIR -type d -mindepth 1 -mmin +360 -prune -print -exec rm -rf {} \; || true
203203
ls -hal $WORKDIR
204204
<<: *pnnl_tags_definition
205205
rules:

0 commit comments

Comments
 (0)