From 9a4033b7c1ad3cced7704546139322ffa258fdfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zsef=20Makai?= Date: Sun, 25 Mar 2018 23:08:44 +0200 Subject: [PATCH] [CI] cleanup of old rpms in master --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6a71dea2146..b57a13ef697 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -544,6 +544,7 @@ clean:artifacts: image: gitlab-registry.cern.ch/linuxsupport/cc7-base script: - yum install --nogpg -y sssd-client sudo createrepo + - sudo -u stci -H bash -c 'for commit_dir in /eos/project/s/storage-ci/www/xrootd/master/*/*/; do find ${commit_dir} -mindepth 1 -maxdepth 1 -type d -ctime +10 | xargs rm -rf; createrepo --update -q ${commit_dir}; done' - sudo -u stci -H bash -c 'for commit_dir in /eos/project/s/storage-ci/www/xrootd/stable-*/*/*/; do find ${commit_dir} -type f -name '"'"'*.rpm'"'"' -mtime +30 -delete; createrepo --update -q ${commit_dir}; done' - sudo -u stci -H bash -c 'for commit_dir in /eos/project/s/storage-ci/www/xrootd/experimental/*/x86_64/; do find ${commit_dir} -type f -name '"'"'*.rpm'"'"' -mtime +30 -delete; createrepo --update -q ${commit_dir}; done' tags: