cloud-infra: Allow the use of specific PDF/IDF for k8-eno-ovs job 17/10017/1
authorFatih Degirmenci <fdegir@gmail.com>
Wed, 25 Aug 2021 09:36:32 +0000 (11:36 +0200)
committerFatih Degirmenci <fdegir@gmail.com>
Wed, 25 Aug 2021 09:36:32 +0000 (11:36 +0200)
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

jjb/cloud-infra/scripts/deploy.sh

index 2c160489917cc78d3dd1e4b891fbed47f2820165..8626ff6e0363cec08f9a8b88df9b2748b166c552 100755 (executable)
@@ -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}