Commit c2a8e6f0 authored by Marco Bartolini's avatar Marco Bartolini
Browse files

Fixing bug in azdora jobs by overriding CDB environment variable

parent 008ab19a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -11,6 +11,10 @@ while getopts "p" opt; do
done

source ~/.bashrc
if [ -d "$DISCOS_CDB"]; then
    echo "replacing $ACS_CDB with $DISCOS_CDB"
    ACS_CDB=$DISCOS_CDB
fi
if [ ! -d "$INTROOT" ]; then
    echo "cannot find INTROOT in $INTROOT"
    exit 1
+4 −0
Original line number Diff line number Diff line
#!/bin/bash -ex
source ~/.bashrc
if [ -d "$DISCOS_CDB"]; then
    echo "replacing $ACS_CDB with $DISCOS_CDB"
    ACS_CDB=$DISCOS_CDB
fi
NEW_INTROOT=${INTROOT_PREFIX}/${TARGETSYS}/${REPO_VERSION}/STABLE
NEW_CDB=${CDB_PREFIX}/${TARGETSYS}/${REPO_VERSION}/STABLE
rm -rf $NEW_INTROOT
+4 −0
Original line number Diff line number Diff line
@@ -4,6 +4,10 @@ BASEDIR=discos/${TARGETSYS}/${BASENAME}
BUILDINFO=${BASEDIR}/buildinfo.txt
BASHRC=${BASEDIR}/bashrc
source ~/.bashrc
if [ -d "$DISCOS_CDB"]; then
    echo "replacing $ACS_CDB with $DISCOS_CDB"
    ACS_CDB=$DISCOS_CDB
fi
rm -rf discos
mkdir -p ${BASEDIR}/introot
mkdir -p ${BASEDIR}/cdb