Location on CVMFS: /cvmfs/cms-griddata.cern.ch/cat
Jenkins project: https://cmssdt.cern.ch/jenkins/job/cvmfs-cms-check-and-update-metadata/
The idea is to have a script that can be run on a regular basis to check for new metadata and to push it to CVMFS. Each tag of the repository will be deployed into a separate directory.
Two key components are included:
-
update_tag.yml
This file serves as the configuration for the downstream repository's.gitlab-ci.yml. It sets up the necessary CI/CD routines to trigger updates automatically. -
update.shThis script is executed during each GitLab CI pipeline run on the default branch. It:- Retrieves the current tip (HEAD) of the repository.
- Tags the commit with the current date.
- Overwrites the existing tag if one for today already exists.
For the automated process to function correctly, ensure that the following four CI/CD environment variables are defined in the downstream repository (currently at https://gitlab.cern.ch/cms-analysis-metadata-dev/pog-test/jme/run2ul-nanoaodv9_data2017)
-
GITMAILThe email address used for Git commits. -
GITNAMEThe Git username associated with the commits. -
GIT_SSH_PRIV_KEYAn SSH private key (encoded).