Skip to content

EOS Cleanup

EOS Cleanup #57

Workflow file for this run

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