Fix mos test triggers
Task: https://mirantis.jira.com/browse/PRODX-34128
Change-Id: I1dc86553058a8c40cb5d01b4058fcd1009cd28d2
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index f5c9d88..262e584 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -257,8 +257,10 @@
runRgnlDeleteMasterTest = true
}
if (commitMsg ==~ /(?s).*\[child-delete-master-test\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*child-delete-master-test.*/) {
+ if (!mosDeployChild) {
+ deployChild = true
+ }
runChildDeleteMasterTest = true
- deployChild = true
common.infoMsg('Child cluster deployment will be enabled since delete child master node test suite will be executed')
}
if (commitMsg ==~ /(?s).*\[child-machine-deletion-policy-test\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*child-machine-deletion-policy-test.*/) {