diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 76944a808bd6b9dd94350a6aa155756e960163e7..50167b1ce810b7f97dad30e1e004b0c61e56472c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,6 +11,7 @@ variables: CMAKE_GENERATOR: 'Ninja' # default build system TARGET_BRANCH: master + TARGET_REPOSITORY: https://gitlab.cern.ch/gaudi/Gaudi.git # Job templates .build: &template_build @@ -260,10 +261,11 @@ pre-commit-checks: - ${PRE_COMMIT_HOME} before_script: - | + set -x python -m venv ${CI_PROJECT_DIR}/.cache/pre-commit-venv . ${CI_PROJECT_DIR}/.cache/pre-commit-venv/bin/activate pip install pre-commit - git fetch origin $TARGET_BRANCH + git fetch $TARGET_REPOSITORY $TARGET_BRANCH git config user.name "Gitlab CI" git config user.email "noreply@cern.ch" script: