Pavel Glazov | b4b7c53 | 2024-05-22 15:13:48 +0400 | [diff] [blame^] | 1 | - job-template: |
| 2 | project-type: pipeline |
| 3 | description: '{job-description}' |
| 4 | concurrent: true |
| 5 | disabled: false |
| 6 | name: released-bm-cicd-queens-ovs-cl-maas |
| 7 | parameters: |
| 8 | - string: |
| 9 | default: bm-cicd-queens-ovs-cl-maas |
| 10 | description: '' |
| 11 | name: LAB_CONFIG_NAME |
| 12 | trim: 'false' |
| 13 | - string: |
| 14 | default: core,kvm,cicd |
| 15 | description: Comma-separated list of stacks to deploy the drivetrain (salt |
| 16 | cluster and cicd nodes) |
| 17 | name: DRIVETRAIN_STACK_INSTALL |
| 18 | trim: 'false' |
| 19 | - string: |
| 20 | default: '24000' |
| 21 | description: '' |
| 22 | name: DRIVETRAIN_STACK_INSTALL_TIMEOUT |
| 23 | trim: 'false' |
| 24 | - string: |
| 25 | default: openstack,ovs,ceph,stacklight |
| 26 | description: Comma-separated list of stacks to deploy the target platform |
| 27 | (openstack and additional components) |
| 28 | name: PLATFORM_STACK_INSTALL |
| 29 | trim: 'false' |
| 30 | - string: |
| 31 | default: '24000' |
| 32 | description: '' |
| 33 | name: PLATFORM_STACK_INSTALL_TIMEOUT |
| 34 | trim: 'false' |
| 35 | - string: |
| 36 | default: "{previous-version}" |
| 37 | description: '' |
| 38 | name: MCP_VERSION |
| 39 | trim: 'false' |
| 40 | - string: |
| 41 | default: sre-team-infra |
| 42 | description: '' |
| 43 | name: NODE_NAME |
| 44 | trim: 'false' |
| 45 | - string: |
| 46 | default: /home/jenkins/images/ubuntu-16-04-x64-mcp2019.2.0.qcow2 |
| 47 | description: '' |
| 48 | name: MCP_IMAGE_PATH1604 |
| 49 | trim: 'false' |
| 50 | - string: |
| 51 | default: /home/jenkins/images/cfg01-day01.qcow2 |
| 52 | description: '' |
| 53 | name: IMAGE_PATH_CFG01_DAY01 |
| 54 | trim: 'false' |
| 55 | - string: |
| 56 | default: cfg01.${{LAB_CONFIG_NAME}}-config-drive.iso |
| 57 | description: ISO name that will be generated and downloaded to the /home/jenkins/images/ |
| 58 | name: CFG01_CONFIG_IMAGE_NAME |
| 59 | trim: 'false' |
| 60 | - string: |
| 61 | default: released-bm-cicd-queens-ovs-cl-maas |
| 62 | description: '' |
| 63 | name: ENV_NAME |
| 64 | trim: 'false' |
| 65 | - string: |
| 66 | default: '' |
| 67 | description: |- |
| 68 | Example: refs/changes/89/411189/36 |
| 69 | (for now - only one reference allowed) |
| 70 | name: TCP_QA_REFS |
| 71 | trim: 'false' |
| 72 | - string: |
| 73 | default: refs/tags/{previous-version} |
| 74 | description: reference to patchset in pipeline-library |
| 75 | name: PIPELINE_LIBRARY_REF |
| 76 | trim: 'false' |
| 77 | - string: |
| 78 | default: refs/tags/{previous-version} |
| 79 | description: reference to patchset in mk-pipelines |
| 80 | name: MK_PIPELINES_REF |
| 81 | trim: 'false' |
| 82 | - string: |
| 83 | default: refs/tags/{previous-version} |
| 84 | description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} |
| 85 | value |
| 86 | name: COOKIECUTTER_TEMPLATE_COMMIT |
| 87 | trim: 'false' |
| 88 | - string: |
| 89 | default: refs/tags/{previous-version} |
| 90 | description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} |
| 91 | value |
| 92 | name: SALT_MODELS_SYSTEM_COMMIT |
| 93 | trim: 'false' |
| 94 | - string: |
| 95 | default: -m "run_cvp_func_sanity|run_cvp_tempest|run_stacklight" |
| 96 | description: |- |
| 97 | Pytest option -k or -m, with expression to select necessary tests. |
| 98 | Additional pytest options are allowed. |
| 99 | Procedure according to https://docs.mirantis.com/mcp/q4-18/mcp-release-notes/mu/mu-7/mu-7-apply-updates.html |
| 100 | name: RUN_TEST_OPTS |
| 101 | trim: 'false' |
| 102 | - bool: |
| 103 | default: true |
| 104 | description: '' |
| 105 | name: SHUTDOWN_ENV_ON_TEARDOWN |
| 106 | - string: |
| 107 | default: '' |
| 108 | description: '' |
| 109 | name: COOKIECUTTER_REF_CHANGE |
| 110 | trim: 'false' |
| 111 | - string: |
| 112 | default: '' |
| 113 | description: '' |
| 114 | name: ENVIRONMENT_TEMPLATE_REF_CHANGE |
| 115 | trim: 'false' |
| 116 | - string: |
| 117 | default: '[MCP1.1_QUEENS]Tempest' |
| 118 | description: '' |
| 119 | name: TEMPEST_TEST_SUITE_NAME |
| 120 | trim: 'false' |
| 121 | - string: |
| 122 | default: queens |
| 123 | description: '' |
| 124 | name: TEMPEST_IMAGE_VERSION |
| 125 | trim: 'false' |
| 126 | - string: |
| 127 | default: '' |
| 128 | description: '' |
| 129 | name: TEMPEST_TARGET |
| 130 | trim: 'false' |
| 131 | - string: |
| 132 | default: '' |
| 133 | description: '' |
| 134 | name: UPDATE_REPO_CUSTOM_TAG |
| 135 | trim: 'false' |
| 136 | - bool: |
| 137 | default: true |
| 138 | description: If set, reports will be created in TestRail for this build |
| 139 | name: REPORT_TO_TESTRAIL |
| 140 | - choice: |
| 141 | choices: |
| 142 | - heat |
| 143 | - devops |
| 144 | description: '' |
| 145 | name: ENV_MANAGER |
| 146 | - string: |
| 147 | default: https://keystone.ic-eu.ssl.mirantis.net/v3 |
| 148 | description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3' |
| 149 | name: OS_AUTH_URL |
| 150 | trim: 'false' |
| 151 | - string: |
| 152 | default: sre-team |
| 153 | description: OpenStack project (tenant) name |
| 154 | name: OS_PROJECT_NAME |
| 155 | trim: 'false' |
| 156 | - string: |
| 157 | default: default |
| 158 | description: OpenStack user domain name |
| 159 | name: OS_USER_DOMAIN_NAME |
| 160 | trim: 'false' |
| 161 | - string: |
| 162 | default: sre-qa-ci-eu |
| 163 | description: Jenkins credentials ID with username and password to create a |
| 164 | heat stack in OpenStack |
| 165 | name: OS_CREDENTIALS |
| 166 | trim: 'false' |
| 167 | - string: |
| 168 | default: eu-cloud-low-flavors.env |
| 169 | description: |- |
| 170 | Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/ |
| 171 | , for example: microcloud-8116.env |
| 172 | name: LAB_PARAM_DEFAULTS |
| 173 | trim: 'false' |
| 174 | - string: |
| 175 | default: refs/tags/{previous-version} |
| 176 | description: '' |
| 177 | name: JENKINS_PIPELINE_BRANCH |
| 178 | trim: 'false' |
| 179 | - string: |
| 180 | default: set=smoke |
| 181 | description: '' |
| 182 | name: TEMPEST_PATTERN |
| 183 | trim: 'false' |
| 184 | - string: |
| 185 | default: refs/tags/{previous-version} |
| 186 | description: '' |
| 187 | name: MCP_COMMON_SCRIPTS_REFS |
| 188 | trim: 'false' |
| 189 | - string: |
| 190 | default: "{previous-version}" |
| 191 | description: 'for formula repo http://mirror.mirantis.com/update/UPDATE_VERSION/salt-formulas/xenial' |
| 192 | name: UPDATE_VERSION |
| 193 | trim: 'false' |
| 194 | - string: |
| 195 | name: UPDATES_MIRANTIS_VERSION |
| 196 | default: 'stable' |
| 197 | description: | |
| 198 | Overwrite subsection of updates.mirantis.com repository. |
| 199 | Effective only if enabled in cookiecutter context! |
| 200 | - string: |
| 201 | name: IPMI_CREDS |
| 202 | default: 'lab_engineer' |
| 203 | - string: |
| 204 | default: '' |
| 205 | description: '' |
| 206 | name: TEMPEST_EXTRA_ARGS |
| 207 | trim: 'false' |
| 208 | - string: |
| 209 | name: CISCO_PASS |
| 210 | default: '1fac0DlhILBo' |
| 211 | - string: |
| 212 | default: '' |
| 213 | description: '' |
| 214 | name: SALT_MODELS_SYSTEM_REF_CHANGE |
| 215 | trim: 'false' |
| 216 | - string: |
| 217 | default: '' |
| 218 | description: '' |
| 219 | name: BATCH_SIZE |
| 220 | trim: 'false' |
| 221 | - bool: |
| 222 | default: false |
| 223 | description: Whether to perform dist-upgrade on virtual nodes during deployment |
| 224 | name: DIST_UPGRADE_NODES |
| 225 | - bool: |
| 226 | default: false |
| 227 | description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment' |
| 228 | name: UPGRADE_SALTSTACK |
| 229 | - bool: |
| 230 | name: RUN_UPGRADE_AFTER_JOB |
| 231 | default: true |
| 232 | description: "Upgrade and test after deploy?" |
| 233 | - bool: |
| 234 | name: UPGRADE_TO_TAG |
| 235 | default: '{upgrade-to-tag}' |
| 236 | description: "Upgrade to new tag" |
| 237 | - string: |
| 238 | name: UPGRADE_VERSION_TAG |
| 239 | default: "{current-version}" |
| 240 | description: 'Only works in conjunction with UPGRADE_TO_TAG and must be younger than the deployed version.' |
| 241 | trim: 'false' |
| 242 | - text: |
| 243 | default: '' |
| 244 | description: |- |
| 245 | Add env vars for deploy and testing |
| 246 | name: EXTRA_VARS |
| 247 | trim: 'false' |
| 248 | pipeline-scm: |
| 249 | lightweight-checkout: false |
| 250 | scm: |
| 251 | - git: |
| 252 | branches: |
| 253 | - FETCH_HEAD |
| 254 | refspec: ${{TCP_QA_REFS}} |
| 255 | url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa |
| 256 | script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy |
| 257 | logrotate: |
| 258 | daysToKeep: 365 |