X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fnolabs%2Fhandle-booking.sh;fp=jjb%2Fnolabs%2Fhandle-booking.sh;h=a9fa8924475cb2a4873f811c8bbb6fad9a523655;hb=165f3f328e137dd236986c7f7807bca1a7396182;hp=30f82d5f5cd21196be85fb55aeec941f8e7e38ed;hpb=f5e2b33682693e1132fc5c3f2cac5adeac266cb7;p=infra%2Fcicd.git diff --git a/jjb/nolabs/handle-booking.sh b/jjb/nolabs/handle-booking.sh index 30f82d5f..a9fa8924 100644 --- a/jjb/nolabs/handle-booking.sh +++ b/jjb/nolabs/handle-booking.sh @@ -10,7 +10,9 @@ sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) sudo apt install -y virtualenv jq > /dev/null /bin/rm -rf $NOLABS_VENV && mkdir -p $NOLABS_VENV virtualenv -p python3 $NOLABS_VENV > /dev/null +set +u source $NOLABS_VENV/bin/activate > /dev/null +set -u pip install httpie > /dev/null # check if the booking is cancelled or not @@ -37,7 +39,9 @@ echo "-------------------------------------------------" cat $NOLABS_USER_SSHPUBKEY echo "-------------------------------------------------" +set +u deactivate +set -u # get the specific patch cd $WORKSPACE git fetch "https://gerrit.nordix.org/infra/engine" $GERRIT_REFSPEC && git checkout FETCH_HEAD @@ -49,7 +53,9 @@ cd engine cd $WORKSPACE +set +u source $NOLABS_VENV/bin/activate > /dev/null +set -u ENGINE_VERSION=$(git rev-parse HEAD) cd $WORKSPACE/.cache/repos/swconfig SCENARIO_VERSION=$(git rev-parse HEAD)