Fix regex match for child-deploy trigger
- Exclude all symbols except '-' for child-deploy trigger
PRODX-15059
Change-Id: I76d111b47ef44650aacc4068f5cef0629bb2ff32
diff --git a/src/com/mirantis/mk/KaasUtils.groovy b/src/com/mirantis/mk/KaasUtils.groovy
index 4970931..11fdc4a 100644
--- a/src/com/mirantis/mk/KaasUtils.groovy
+++ b/src/com/mirantis/mk/KaasUtils.groovy
@@ -96,7 +96,7 @@
deployChild = true
upgradeChild = true
}
- def deployMatches = (commitMsg =~ /(\[child-deploy\s*(\w|\W)+?\])/)
+ def deployMatches = (commitMsg =~ /(\[child-deploy\s*(\w|\-)+?\])/)
if (deployMatches.size() > 0) {
// override child version when it set explicitly
deployChild = true