Pass FORMULA_PKG_REVISION to heat env
Allow to specify from which releases (nightly,
testing, stable) to install salt formulas
on heat stack creation stage.
Change-Id: Ib3a3bf32ce37861fb040be32df4343d7cdee48d7
Depends-On: I847103fbef163ab1ae5873771a010b738f84a2cf
Related-Prod: PROD-14859
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index b7e22a8..de14930 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -151,6 +151,12 @@
common.infoMsg("Property STACK_RECLASS_BRANCH or STACK_RECLASS_ADDRESS not found! Using default values from template.")
}
+ // put formulas revision - stable, testing or nightly
+ if (common.validInputParam('FORMULA_PKG_REVISION')) {
+ common.infoMsg("Setting formulas revision to ${FORMULA_PKG_REVISION}")
+ envParams.put('cfg_formula_pkg_revision', FORMULA_PKG_REVISION)
+ }
+
openstack.createHeatStack(openstackCloud, STACK_NAME, STACK_TEMPLATE, envParams, HEAT_STACK_ENVIRONMENT, venv)
}