Skip to content

Repository files navigation

CMS metadata distribution scripts for CVMFS

Overview

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.

For automatic update of the tags

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.sh This 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.

Prerequisites

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)

  • GITMAIL The email address used for Git commits.

  • GITNAME The Git username associated with the commits.

  • GIT_SSH_PRIV_KEY An SSH private key (encoded).

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages