Skip to content
Snippets Groups Projects
Commit 50cfbbf6 authored by david_williams's avatar david_williams
Browse files

initial cleanup task

parent e5298178
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,9 @@ n=4;
echo " Removing artifact directories older than $n days";
echo " number of directories before cleaning: ";
find ./ -mindepth 2 -maxdepth 2 | wc -l
find ${BUILD_HOME}/artifacts -mindepth 2 -maxdepth 2 | wc -l
find ./ -mindepth 2 -maxdepth 2 -ctime +$n -exec rm -fr '{}' \;
find ${BUILD_HOME}/artifacts -mindepth 2 -maxdepth 2 -ctime +$n -exec rm -fr '{}' \;
echo " number of directories after cleaning: ";
find ./ -mindepth 2 -maxdepth 2 | wc -l
find ${BUILD_HOME}/artifacts -mindepth 2 -maxdepth 2 | wc -l
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment