Skip to content

Commit 7514843

Browse files
committed
[Core CI] public-ci-sync trigger
PRODX-44055 Change-Id: Iedd95036df23089d20aca6838f23f176842ca46d
1 parent e7a4d86 commit 7514843

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/com/mirantis/mk/KaasUtils.groovy

+10
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ def checkDeploymentTestSuite() {
142142
def enableBv2Smoke = true
143143
def runCacheWarmup = env.CACHE_WARMUP_ENABLED ? env.CACHE_WARMUP_ENABLED.toBoolean() : false
144144
def cveScan = false
145+
// Sync to public CDN is triggered automatically for corresponding scenarios
146+
// This trigger is used only for on-demand cases
147+
def publicCISync = false
145148

146149
def commitMsg = env.GERRIT_CHANGE_COMMIT_MESSAGE ? new String(env.GERRIT_CHANGE_COMMIT_MESSAGE.decodeBase64()) : ''
147150
if (commitMsg ==~ /(?s).*\[mgmt-proxy\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*mgmt-proxy.*/) {
@@ -401,6 +404,11 @@ def checkDeploymentTestSuite() {
401404
common.errorMsg('CVE Scan job enabled')
402405
}
403406

407+
if (commitMsg ==~ /(?s).*\[public-ci-sync\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*public-ci-sync\.*/) {
408+
publicCISync = true
409+
common.errorMsg('Sync to public-ci CDN is enabled')
410+
}
411+
404412
def slackChannelMatches = (commitMsg =~ /(\[slack-channel\s*[#@](\S+)])/)
405413
if (slackChannelMatches.size() > 0) {
406414
// override chanenel notify when it set explicitly
@@ -674,6 +682,7 @@ def checkDeploymentTestSuite() {
674682
Keycloak+LDAP integration enabled: ${coreKeycloakLdap}
675683
NTP update job scheduled: ${runNTPUpdateTest}
676684
MCC MariaDB Backup/Restore test enabled: ${runMCCMariaBackupRestoreTest}
685+
Sync to public-ci CDN enabled: ${publicCISync}
677686
Triggers: https://gerrit.mcp.mirantis.com/plugins/gitiles/kaas/core/+/refs/heads/master/hack/ci-gerrit-keywords.md""")
678687
return [
679688
osCloudLocation : openstackIMC,
@@ -755,6 +764,7 @@ def checkDeploymentTestSuite() {
755764
internalNTPServersEnabled : configureInternalNTP,
756765
runNTPUpdateTestEnabled : runNTPUpdateTest,
757766
runMCCMariaBackupRestoreTestEnabled : runMCCMariaBackupRestoreTest,
767+
publicCISyncEnabled : publicCISync,
758768
]
759769
}
760770

0 commit comments

Comments
 (0)