cloud-infra: Allow the use of specific PDF/IDF for k8-eno-ovs job
[infra/cicd.git] / 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}