X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fxci%2Fxci-deploy.sh;h=211d282d324def115df03f4ede977e838ab64f4d;hb=1fc5d49f8aa9eb44e615afdd597827be48cf517a;hp=33457b9f041651980ab33cdef12c4a47bc95cc0a;hpb=85ec79c7b6ac21c0d8e6a2910246c2d5d38ad981;p=releng.git diff --git a/jjb/xci/xci-deploy.sh b/jjb/xci/xci-deploy.sh index 33457b9f0..211d282d3 100755 --- a/jjb/xci/xci-deploy.sh +++ b/jjb/xci/xci-deploy.sh @@ -11,18 +11,18 @@ set -o errexit set -o nounset set -o pipefail -cd $WORKSPACE/prototypes/xci +cd $WORKSPACE/xci # for daily jobs, we want to use working versions # for periodic jobs, we will use whatever is set in the job, probably master -if [[ "$JOB_NAME" =~ "daily" ]]; then +if [[ "$XCI_LOOP" == "daily" ]]; then # source pinned-vars to get releng version source ./config/pinned-versions # checkout the version git checkout -q $OPNFV_RELENG_VERSION echo "Info: Using $OPNFV_RELENG_VERSION" -elif [[ "$JOB_NAME" =~ "periodic" ]]; then +elif [[ "$XCI_LOOP" == "periodic" ]]; then echo "Info: Using $OPNFV_RELENG_VERSION" fi @@ -31,7 +31,7 @@ fi # to take this into account while deploying anyways # clone openstack-ansible # stable/ocata already use pinned versions so this is only valid for master -if [[ "$JOB_NAME" =~ "periodic" && "$OPENSTACK_OSA_VERSION" == "master" ]]; then +if [[ "$XCI_LOOP" == "periodic" && "$OPENSTACK_OSA_VERSION" == "master" ]]; then cd $WORKSPACE # get the url to openstack-ansible git source ./config/env-vars @@ -53,21 +53,23 @@ if [[ "$JOB_NAME" =~ "periodic" && "$OPENSTACK_OSA_VERSION" == "master" ]]; then fi # proceed with the deployment -cd $WORKSPACE/prototypes/xci -sudo -E ./xci-deploy.sh +cd $WORKSPACE/xci +./xci-deploy.sh -# if we arrived here without failing, it means we have something we can pin -# this is again here to show the intention -cd $WORKSPACE/openstack-ansible -OSA_GIT_SHA1=$(git rev-parse HEAD) +if [[ "$JOB_NAME" =~ "periodic" && "$OPENSTACK_OSA_VERSION" == "master" ]]; then + # if we arrived here without failing, it means we have something we can pin + # this is again here to show the intention + cd $WORKSPACE/openstack-ansible + OSA_GIT_SHA1=$(git rev-parse HEAD) -# log some info -echo -e "\n" -echo "***********************************************************************" -echo "* OSA SHA1 TO PIN *" -echo "* *" -echo " $OSA_GIT_SHA1" -echo "* *" -echo "***********************************************************************" + # log some info + echo -e "\n" + echo "***********************************************************************" + echo "* OSA SHA1 TO PIN *" + echo "* *" + echo " $OSA_GIT_SHA1" + echo "* *" + echo "***********************************************************************" +fi echo -e "\n"