Commit e552b582 authored by Julien Leduc's avatar Julien Leduc
Browse files

Enabling EOS TAG repo for nighly regression tests: if these fail we can now...

Enabling EOS TAG repo for nighly regression tests: if these fail we can now complain to the EOS team.
parent 6cc9fa8c
#!/bin/bash
# Which EOS repos should be enabled? (enable only one of these 2)
COMMIT_REPO_ENABLED=0 # enable commit repo? (0 -> no, 1-> yes)
TAG_REPO_ENABLED=1 # enable tag repo? (0 -> no, 1-> yes)
usage() { cat <<EOF 1>&2
Usage: $0 -n <namespace>
EOF
......@@ -29,8 +33,12 @@ fi
kubectl -n ${NAMESPACE} exec ctaeos -- yum-config-manager --disable cta-artifacts
echo -e "[eos-ci-eos]\nname=EOS CI repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/commit/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=1\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci.repo"
echo -e "[eos-ci-eos-depend]\nname=EOS CI repo for eos depend packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine-depend/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=1\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat >> /etc/yum.repos.d/eos-ci.repo"
# This is the commit repo: any commit from any branch in EOS is pushed there => works if lucky...
echo -e "[eos-ci-eos-commit]\nname=EOS CI commit repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/commit/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=${COMMIT_REPO_ENABLED}\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-commit.repo"
# This is the tag repo: only tagged commits aimed for production are going here.
# IF IT DOESN'T WORK WE CAN COMPLAIN HEAVILY
echo -e "[eos-ci-eos-tag]\nname=EOS CI tag repo for eos packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine/tag/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=${TAG_REPO_ENABLED}\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-tag.repo"
echo -e "[eos-ci-eos-depend]\nname=EOS CI repo for eos depend packages\nbaseurl=http://storage-ci.web.cern.ch/storage-ci/eos/citrine-depend/el-7/x86_64/\npriority=4\ngpgcheck=0\nenabled=1\n\n" | kubectl -n ${NAMESPACE} exec -i ctaeos -- bash -c "cat > /etc/yum.repos.d/eos-ci-depend.repo"
kubectl -n ${NAMESPACE} exec ctaeos -- eos version
......
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