-if [[ "$EXECUTION_MODE" == "offline-deployment" && "$PROVISIONER_TYPE" == "heat" ]]; then
- echo "Info : Offline deployments on cloud instances is not currently supported!"
- exit 0
-fi
-
-if [[ "$GERRIT_PROJECT" == "infra/installer/kolla" ]]; then
- echo "Info : Setting installer to kolla and scenario to os-nosdn-nofeature"
- export INSTALLER_TYPE="kolla"
- export DEPLOY_SCENARIO="os-nosdn-nofeature"
+# NOTE (fdegir): we need to remove $WORKSPACE and clone infra/engine repository
+# as infra/engine is what drives the deployment
+if [[ "$GERRIT_PROJECT" != "infra/engine" ]]; then
+ cd "$HOME" && /bin/rm -rf "$WORKSPACE"
+ echo "Info : Cloning infra/engine repository"
+ git clone -q https://gerrit.nordix.org/infra/engine.git "$WORKSPACE"
+ cd "$WORKSPACE"