[feat][core] disable bm-demo on demand
Change-Id: I8af9c36a5f5e83ef2c1376dc497d2d377b926831
us: https://mirantis.jira.com/browse/PRODX-6963
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 7526697..335affe 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -59,6 +59,7 @@
// optional demo deployment customization
def awsOnDemandDemo = env.ALLOW_AWS_ON_DEMAND ? env.ALLOW_AWS_ON_DEMAND.toBoolean() : false
def enableOSDemo = true
+ def enableBMDemo = true
def commitMsg = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : ''
if (commitMsg ==~ /(?s).*\[child-deploy\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*child-deploy.*/ || upgradeChild || runChildConformance) {
@@ -93,6 +94,11 @@
common.errorMsg('Openstack demo deployment will be aborted, VF -1 will be set')
}
+ if (commitMsg ==~ /(?s).*\[disable-bm-demo\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*disable-bm-demo\.*/) {
+ enableBMDemo = false
+ common.errorMsg('BM demo deployment will be aborted, VF -1 will be set')
+ }
+
// TODO (vnaumov) remove below condition after moving all releases to UCP
def ucpChildMatches = (commitMsg =~ /(\[child-ucp\s*ucp-.*?\])/)
if (ucpChildMatches.size() > 0) {
@@ -113,6 +119,7 @@
Mgmt UI e2e testing scheduled: ${runUie2e}
AWS provider deployment scheduled: ${awsOnDemandDemo}
OS provider deployment scheduled: ${enableOSDemo}
+ BM provider deployment scheduled: ${enableBMDemo}
Service binaries fetching scheduled: ${fetchServiceBinaries}
Triggers: https://docs.google.com/document/d/1SSPD8ZdljbqmNl_FEAvTHUTow9Ki8NIMu82IcAVhzXw/""")
return [
@@ -124,6 +131,7 @@
runMgmtConformanceEnabled : runMgmtConformance,
fetchServiceBinariesEnabled: fetchServiceBinaries,
awsOnDemandDemoEnabled : awsOnDemandDemo,
+ bmDemoEnabled : enableBMDemo,
osDemoEnabled : enableOSDemo]
}