Feature 11006: make juju installation optional in community installer
[osm/devops.git] / jenkins / ci-pipelines / ci_stage_3.groovy
index 3bd921d..90cd9f7 100644 (file)
@@ -34,6 +34,7 @@ properties([
         string(defaultValue: 'ubuntu22.04', description: '', name: 'OPENSTACK_BASE_IMAGE'),
         string(defaultValue: 'osm.sanity', description: '', name: 'OPENSTACK_OSM_FLAVOR'),
         booleanParam(defaultValue: false, description: '', name: 'TRY_OLD_SERVICE_ASSURANCE'),
+        booleanParam(defaultValue: true, description: '', name: 'TRY_JUJU_INSTALLATION'),
         booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_FAIL'),
         booleanParam(defaultValue: false, description: '', name: 'SAVE_CONTAINER_ON_PASS'),
         booleanParam(defaultValue: true, description: '', name: 'SAVE_ARTIFACTS_ON_SMOKE_SUCCESS'),
@@ -568,7 +569,10 @@ node("${params.NODE}") {
                         // Run -k8s installer here specifying internal docker registry and docker proxy
                         osm_installation_options = ""
                         if (params.TRY_OLD_SERVICE_ASSURANCE) {
-                            osm_installation_options = "--old-sa"
+                            osm_installation_options = "${osm_installation_options} --old-sa"
+                        }
+                        if (params.TRY_JUJU_INSTALLATION) {
+                            osm_installation_options = "${osm_installation_options} --juju --lxd"
                         }
                         withCredentials([gitlabCredentialsMap]) {
                             sshCommand remote: remote, command: """