X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fnolabs%2Fdelete-booking.sh;h=9a80507290ea3ae1cc8ececb6e8f2a612dea44e7;hb=52728ea0e6a4e3fed7198baa828673c9515d552e;hp=9b53764e832dbea4fe241350661e34c26514f911;hpb=cc5e9e884144949bdb3f866f407e830b9df789b1;p=infra%2Fcicd.git diff --git a/jjb/nolabs/delete-booking.sh b/jjb/nolabs/delete-booking.sh index 9b53764e..9a805072 100644 --- a/jjb/nolabs/delete-booking.sh +++ b/jjb/nolabs/delete-booking.sh @@ -1,12 +1,18 @@ #!/bin/bash +set -o errexit +set -o nounset +set -o pipefail cd $WORKSPACE # install dependencies +sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" > /dev/null 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 python-openstackclient python-heatclient python-novaclient > /dev/null source /tmp/openrc