Skip to content
Snippets Groups Projects
Commit b7c935fc authored by Zoltan Mathe's avatar Zoltan Mathe
Browse files

Merge branch 'master_ci_releasesCfg' into 'master'

[master] Gitlabci: use master releases.cfg for patch release

See merge request !393
parents be69f671 4eee0b97
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,11 @@ create_tarball:
- tags
script:
# Choose from which branch we should get the releases.cfg file
# We take it from devel if it is a pre release, otherwise master
- BRANCH=$(echo $CI_COMMIT_TAG | grep -q pre; if [ $? -eq 0 ]; then echo "devel"; else echo "master"; fi)
# Get the releases.cfg from the devel branch
- curl -L https://gitlab.cern.ch/lhcb-dirac/LHCbDIRAC/raw/devel/LHCbDIRAC/releases.cfg > releases.cfg
- curl -L https://gitlab.cern.ch/lhcb-dirac/LHCbDIRAC/raw/$BRANCH/LHCbDIRAC/releases.cfg > releases.cfg
# This is how it was originaly retrieved....
#- git archive --remote ${CI_PROJECT_DIR} origin/devel LHCbDIRAC/releases.cfg | tar -x -v -f - --transform 's|^LHCbDIRAC/||' LHCbDIRAC/releases.cfg
# use the kerberos gitlab auth rather than ssh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment