[Core CI] Add a trigger to disable bm-core demo
bm-core demo is enabled by default for the lcm-ansible proeject
PRODX-39662
Change-Id: I8d8ab03afae91d7fc7980c24d9934e187c1d8783
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 6e68c3f..5540039 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -373,6 +373,12 @@
enableBMDemo = false
}
+ // Projects may or may not have BM Core demo enabled by default
+ if (commitMsg ==~ /(?s).*\[disable-bm-core-demo\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*disable-bm-core-demo\.*/) {
+ enablebmCoreDemo = false
+ common.errorMsg('BM Core demo deployment will be aborted, VF -1 will be set')
+ }
+
if (commitMsg ==~ /(?s).*\[disable-bm-core-cleanup\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*disable-bm-core-cleanup\\.*/) {
bmCoreCleanup = false
}