X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fcloud-infra%2Fscripts%2Fdeploy.sh;h=99bedc3a820bfabe7a38895cacbf8122d3543144;hb=3b5d5d8f359a4207872edf32773fdb72c3193eb7;hp=1f0f7b16118446f07c771a0bc876e733e6616284;hpb=a41cb97c1eb86df7fd495dff15100b2e7a005a0c;p=infra%2Fcicd.git diff --git a/jjb/cloud-infra/scripts/deploy.sh b/jjb/cloud-infra/scripts/deploy.sh index 1f0f7b16..99bedc3a 100755 --- a/jjb/cloud-infra/scripts/deploy.sh +++ b/jjb/cloud-infra/scripts/deploy.sh @@ -44,9 +44,16 @@ else ENGINE_ROOT_DIR="$WORKSPACE" fi -# NOTE (fdegir): for bifrost based deployments, we don't need these files so we fake them +# NOTE (fdegir): the vars PDF and IDF are set in the jjb/job and there is no elegant +# way to dynamically change them there since the deploy scenario is determined until +# after the job is triggered and commit message is parsed +if [[ "$HW_TYPE" == "virtual" && "$DEPLOY_SCENARIO" == "k8-eno-ovs" ]]; then + export PDF='https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/eno-vpod1-pdf.yml' + export IDF='https://gerrit.nordix.org/gitweb?p=infra/hwconfig.git;a=blob_plain;f=pods/eno-vpod1-idf.yml' +fi + +# NOTE (fdegir): for bifrost based deployments, we don't need openrc file so we fake it OPENRC_FILE=${OPENRC_FILE:-/tmp/openrc} -HEAT_ENVIRONMENT_FILENAME=${HEAT_ENVIRONMENT_FILENAME:-/tmp/heat} /bin/cp -f $OPENRC_FILE /tmp/openrc