support stack_type=physical
Change-Id: I63491181d546b5cb6ca0f942d974e4537d65e6e6
diff --git a/cloud-deploy-pipeline.groovy b/cloud-deploy-pipeline.groovy
index 57c0e38..3eaaeb6 100644
--- a/cloud-deploy-pipeline.groovy
+++ b/cloud-deploy-pipeline.groovy
@@ -1,6 +1,6 @@
/**
*
- * Launch heat/cloudformation stack
+ * Launch stack and work with it
*
* Expected parameters:
* STACK_NAME Infrastructure stack name
@@ -189,7 +189,9 @@
currentBuild.description = "${STACK_NAME} ${saltMasterHost}"
SALT_MASTER_URL = "http://${saltMasterHost}:6969"
- } else {
+ } else if (STACK_TYPE == 'physical') {
+ common.infoMsg('Using physical stack')
+ } else {
throw new Exception("STACK_TYPE ${STACK_TYPE} is not supported")
}