EOS Cleanup #45
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: EOS Cleanup | |
on: | |
schedule: | |
- cron: '0 3 * * 0' # Run on Sunday morning at 3h00 UTC | |
workflow_dispatch: | |
env: | |
EOS_DIR: /eos/user/c/cmsmwbot/ | |
jobs: | |
cleanup: | |
runs-on: [self-hosted, linux, x64] | |
# delete old folders, keep the 5 newest ones | |
steps: | |
- name: setup kerberos | |
run: | | |
kinit -kt ~/private/.keytab [email protected] | |
klist -k -t -e ~/private/.keytab | |
klist | |
echo "xrdfs root://eosuser.cern.ch// ls $EOS_DIR" | |
xrdfs root://eosuser.cern.ch// ls $EOS_DIR | |
- name: cleanup main | |
run: scripts/ci/cleanup_directory.sh $EOS_DIR/ScheduledBuilds/ 5 | |
- name: cleanup unfolding | |
run: scripts/ci/cleanup_directory.sh $EOS_DIR/ScheduledBuilds_unfolding/ 5 |