From: Fatih Degirmenci Date: Wed, 25 Aug 2021 09:36:32 +0000 (+0200) Subject: cloud-infra: Allow the use of specific PDF/IDF for k8-eno-ovs job X-Git-Url: https://gerrit.nordix.org/gitweb?a=commitdiff_plain;ds=sidebyside;h=85dd6d4b0c972643ffb2d19831fe6b7ecab6979d;p=infra%2Fcicd.git cloud-infra: Allow the use of specific PDF/IDF for k8-eno-ovs job This change requires hwconfig change adding PDF and IDF for k8-eno-ovs to be merged first. https://gerrit.nordix.org/c/infra/hwconfig/+/9887 Change-Id: Ia14d878a7eda0c8006e525a5eb4eb5037aad9055 --- diff --git a/jjb/cloud-infra/scripts/deploy.sh b/jjb/cloud-infra/scripts/deploy.sh index 2c160489..8626ff6e 100755 --- a/jjb/cloud-infra/scripts/deploy.sh +++ b/jjb/cloud-infra/scripts/deploy.sh @@ -44,6 +44,14 @@ else ENGINE_ROOT_DIR="$WORKSPACE" fi +# 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_SENARIO" == "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}