Skip to content

Commit 839c6bf

Browse files
committed
Add air-gapped trigger
Task: https://mirantis.jira.com/browse/PRODX-48411 Change-Id: I9d58593f1cdecb995624b1a20ae79c7daac8ae6e
1 parent 18b1c6a commit 839c6bf

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/com/mirantis/mk/KaasUtils.groovy

+8
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def checkDeploymentTestSuite() {
136136
def enableBMDemo = true
137137
def enablebmCoreDemo = env.ALLOW_BM_CORE_ON_DEMAND ? env.ALLOW_BM_CORE_ON_DEMAND.toBoolean() : false
138138
def bmCoreCleanup = env.BM_CORE_CLEANUP ? env.BM_CORE_CLEANUP.toBoolean() : true
139+
def airGapped = env.ALLOW_AIRGAP ? env.ALLOW_AIRGAP.toBoolean() : false
139140
def enableArtifactsBuild = true
140141
def bmDeployType = env.BM_DEPLOY_TYPE ? env.BM_DEPLOY_TYPE.toString() : 'virtual'
141142
def openstackIMC = env.OPENSTACK_CLOUD_LOCATION ? env.OPENSTACK_CLOUD_LOCATION : 'us'
@@ -411,6 +412,10 @@ def checkDeploymentTestSuite() {
411412
bmCoreCleanup = false
412413
}
413414

415+
if (commitMsg ==~ /(?s).*\[air-gapped\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*air-gapped\\.*/) {
416+
airGapped = true
417+
}
418+
414419
if (commitMsg ==~ /(?s).*\[disable-vsphere-demo\].*/ || env.GERRIT_EVENT_COMMENT_TEXT ==~ /(?s).*disable-vsphere-demo\.*/) {
415420
enableVsphereDemo = false
416421
common.errorMsg('vSphere demo deployment will be aborted, VF -1 will be set')
@@ -727,6 +732,7 @@ def checkDeploymentTestSuite() {
727732
BM Core type deplyment: ${bmDeployType}
728733
BM Core cleanup: ${bmCoreCleanup}
729734
BM provider deployment scheduled: ${enableBMDemo}
735+
airGapped deployment: ${airGapped}
730736
Ubuntu on vSphere scheduled: ${enableVsphereUbuntu}
731737
RHEL on vSphere scheduled: ${enableVsphereRHEL}
732738
Artifacts build scheduled: ${enableArtifactsBuild}
@@ -816,6 +822,7 @@ def checkDeploymentTestSuite() {
816822
bmCoreDemoEnabled : enablebmCoreDemo,
817823
bmCoreCleanup : bmCoreCleanup,
818824
bmDeployType : bmDeployType,
825+
airGapped : airGapped,
819826
osDemoEnabled : enableOSDemo,
820827
vsphereUbuntuEnabled : enableVsphereUbuntu,
821828
vsphereRHELEnabled : enableVsphereRHEL,
@@ -1172,6 +1179,7 @@ def triggerPatchedComponentDemo(component, patchSpec = '', configurationFile = '
11721179
booleanParam(name: 'AIO_CLUSTER', value: triggers.aioCluster),
11731180
booleanParam(name: 'DOCKER_SERVICES_CHECK_SKIP', value: triggers.dockerServicesCheckSkip),
11741181
booleanParam(name: 'BM_CORE_CLEANUP', value: triggers.bmCoreCleanup),
1182+
booleanParam(name: 'ALLOW_AIRGAP', value: triggers.airGapped),
11751183
booleanParam(name: 'DISABLE_KUBE_API_AUDIT', value: triggers.disableKubeApiAudit),
11761184
booleanParam(name: "AUDITD_ENABLE", value: triggers.auditdEnabled),
11771185
booleanParam(name: 'CORE_KEYCLOAK_LDAP_ENABLED', value: triggers.coreKeycloakLdapEnabled),

0 commit comments

Comments
 (0)