This patch adds a specific commit id of the infra
engine to avoid fetching latest changes from
the master branch which may affect the deployments.
Signed-off-by: Rihab Banday <rihab.banday@ericsson.com>
Change-Id: I042f144f09db2cfa51f7a488a78426ebfabe65be
Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/72715
Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org>
Reviewed-by: Michael Pedersen <michaelx.pedersen@intel.com>
Reviewed-by: Georg Kunz <georg.kunz@ericsson.com>
# Name of host bridge to which the VM is connected to (used for PXE)
export BRIDGE=pxebr
# Name of host bridge to which the VM is connected to (used for PXE)
export BRIDGE=pxebr
+# Specific infra engine SHA to avoid fetching latest master changes
+export ENGINE_COMMIT_ID=${ENGINE_COMMIT_ID:-08325937}
+
# Jump VM details
export VM_NAME=$(yq r $CURRENTPATH/hw_config/$VENDOR/pdf.yaml jumphost.name)
export USERNAME=${USERNAME:-ubuntu}
# Jump VM details
export VM_NAME=$(yq r $CURRENTPATH/hw_config/$VENDOR/pdf.yaml jumphost.name)
export USERNAME=${USERNAME:-ubuntu}
if [ ! -d "${PROJECT_ROOT}/engine" ]; then
ssh-keygen -t rsa -N "" -f ${PROJECT_ROOT}/.ssh/id_rsa
git clone https://gerrit.nordix.org/infra/engine.git
if [ ! -d "${PROJECT_ROOT}/engine" ]; then
ssh-keygen -t rsa -N "" -f ${PROJECT_ROOT}/.ssh/id_rsa
git clone https://gerrit.nordix.org/infra/engine.git
- cp $PROJECT_ROOT/$VENDOR/{pdf.yaml,idf.yaml} \
+ cd ${PROJECT_ROOT}/engine/engine && git checkout ${ENGINE_COMMIT_ID}
+ cp ${PROJECT_ROOT}/${VENDOR}/{pdf.yaml,idf.yaml} \
${PROJECT_ROOT}/engine/engine
fi
${PROJECT_ROOT}/engine/engine
fi
-cd ${PROJECT_ROOT}/engine/engine
-./deploy.sh -s ironic -d ${DISTRO} \
+${PROJECT_ROOT}/engine/engine/deploy.sh -s ironic -d ${DISTRO} \
-p file:///${PROJECT_ROOT}/engine/engine/pdf.yaml \
-i file:///${PROJECT_ROOT}/engine/engine/idf.yaml
EOF
-p file:///${PROJECT_ROOT}/engine/engine/pdf.yaml \
-i file:///${PROJECT_ROOT}/engine/engine/idf.yaml
EOF