Commit ddfa3e1f authored by Aleksandra Mnich's avatar Aleksandra Mnich
Browse files

[SIGMON-369] wip

parent 449c1689
Pipeline #4152351 passed with stage
in 12 seconds
......@@ -4,17 +4,20 @@
# Contents of each package are copied to be accessible under a path /eos/project/l/lhcsm/venv_${CI_COMMIT_BRANCH}/lhcsmapi/api/
# set ANALYSIS_BRANCH if not set
export ANALYSIS_BRANCH="${ANALYSIS_BRANCH:-$CI_COMMIT_BRANCH}"
yum install git -y
yum install jq -y
echo "${EOS_ACCOUNT_PASSWORD}" | kinit "${EOS_ACCOUNT_USERNAME}@CERN.CH"
#export ANALYSIS_BRANCH="${ANALYSIS_BRANCH:-$CI_COMMIT_BRANCH}"
#
#yum install git -y
#yum install jq -y
#
#echo "${EOS_ACCOUNT_PASSWORD}" | kinit "${EOS_ACCOUNT_USERNAME}@CERN.CH"
REPOS=$(curl -s https://gitlab.cern.ch/api/v4/groups/152156 | jq -r ".projects[].http_url_to_repo")
for REPO in ${REPOS}; do
# extract the name
DIR=($(echo $REPO | cut -d/ -f6 | cut -d. -f1))
# check if branch exists
git ls-remote --exit-code --heads "${REPO}" "${ANALYSIS_BRANCH}"
if [ "$?" == "2" ]; then
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment