[ui] refactor test type triggers
Task: PRODX-30908
Change-Id: I9c913ec8ca7ecd7c4766fb425e204ba229b98adb
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 88c4371..461d948 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -196,10 +196,10 @@
mosDeployChild = true
openstackIMC = 'eu2'
}
- if (commitMsg ==~ /(?s).*\[ui-e2e\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*ui-e2e.*/) {
+ if (commitMsg ==~ /(?s).*\[ui-e2e-nw\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*ui-e2e-nw.*/) {
runUie2e = true
}
- if (commitMsg ==~ /(?s).*\[ui-e2e-new\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*ui-e2e-new.*/) {
+ if (commitMsg ==~ /(?s).*\[ui-e2e-pw\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*ui-e2e-pw.*/) {
runUie2eNew = true
}
if (commitMsg ==~ /(?s).*\[mgmt-cfm\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*mgmt-cfm.*/) {
@@ -403,7 +403,7 @@
// calculate weight of current demo run to manage lockable resources
def demoWeight = deployChild ? 2 : 1 // management = 1, child += 1
- if (runUie2e) {
+ if (runUie2e || runUie2eNew) {
demoWeight += 1
}