@@ -142,6 +142,9 @@ def checkDeploymentTestSuite() {
142
142
def enableBv2Smoke = true
143
143
def runCacheWarmup = env. CACHE_WARMUP_ENABLED ? env. CACHE_WARMUP_ENABLED . toBoolean() : false
144
144
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
145
148
146
149
def commitMsg = env. GERRIT_CHANGE_COMMIT_MESSAGE ? new String (env. GERRIT_CHANGE_COMMIT_MESSAGE . decodeBase64()) : ' '
147
150
if (commitMsg ==~ / (?s).*\[ mgmt-proxy\] .*/ || env. GERRIT_EVENT_COMMENT_TEXT ==~ / (?s).*mgmt-proxy.*/ ) {
@@ -401,6 +404,11 @@ def checkDeploymentTestSuite() {
401
404
common. errorMsg(' CVE Scan job enabled' )
402
405
}
403
406
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
+
404
412
def slackChannelMatches = (commitMsg =~ / (\[ slack-channel\s *[#@](\S +)])/ )
405
413
if (slackChannelMatches. size() > 0 ) {
406
414
// override chanenel notify when it set explicitly
@@ -674,6 +682,7 @@ def checkDeploymentTestSuite() {
674
682
Keycloak+LDAP integration enabled: ${ coreKeycloakLdap}
675
683
NTP update job scheduled: ${ runNTPUpdateTest}
676
684
MCC MariaDB Backup/Restore test enabled: ${ runMCCMariaBackupRestoreTest}
685
+ Sync to public-ci CDN enabled: ${ publicCISync}
677
686
Triggers: https://gerrit.mcp.mirantis.com/plugins/gitiles/kaas/core/+/refs/heads/master/hack/ci-gerrit-keywords.md""" )
678
687
return [
679
688
osCloudLocation : openstackIMC,
@@ -755,6 +764,7 @@ def checkDeploymentTestSuite() {
755
764
internalNTPServersEnabled : configureInternalNTP,
756
765
runNTPUpdateTestEnabled : runNTPUpdateTest,
757
766
runMCCMariaBackupRestoreTestEnabled : runMCCMariaBackupRestoreTest,
767
+ publicCISyncEnabled : publicCISync,
758
768
]
759
769
}
760
770
0 commit comments