Pavel Glazov | dbffe0f | 2022-11-09 23:01:43 +0400 | [diff] [blame] | 1 | --- |
| 2 | - job-template: |
| 3 | project-type: pipeline |
| 4 | concurrent: true |
| 5 | description: '{job-description}' |
| 6 | name: heat-cicd-pike-contrail-stb-sl |
| 7 | # 'disabled' and 'timed' option are defined in the project.yaml |
| 8 | disabled: '{obj:disabled}' |
dtsapikov | f6cbdbf | 2022-12-21 16:59:03 +0400 | [diff] [blame] | 9 | #triggers: |
| 10 | #- timed: '{obj:trigger_time}' |
Pavel Glazov | dbffe0f | 2022-11-09 23:01:43 +0400 | [diff] [blame] | 11 | properties: |
| 12 | - build-discarder: |
| 13 | days-to-keep: 60 |
| 14 | num-to-keep: 50 |
| 15 | parameters: |
| 16 | - string: |
| 17 | default: heat-cicd-pike-contrail-stb-sl |
| 18 | description: '' |
| 19 | name: LAB_CONFIG_NAME |
| 20 | trim: 'false' |
| 21 | - string: |
| 22 | default: core,cicd |
| 23 | description: Comma-separated list of stacks to deploy the drivetrain (salt |
| 24 | cluster and cicd nodes) |
| 25 | name: DRIVETRAIN_STACK_INSTALL |
| 26 | trim: 'false' |
| 27 | - string: |
Pavel Glazov | 9c357ee | 2023-12-11 16:10:16 +0400 | [diff] [blame] | 28 | default: '24000' |
Pavel Glazov | dbffe0f | 2022-11-09 23:01:43 +0400 | [diff] [blame] | 29 | description: '' |
| 30 | name: DRIVETRAIN_STACK_INSTALL_TIMEOUT |
| 31 | trim: 'false' |
| 32 | - string: |
| 33 | default: openstack,contrail,ceph,stacklight |
| 34 | description: Comma-separated list of stacks to deploy the target platform |
| 35 | (openstack and additional components) |
| 36 | name: PLATFORM_STACK_INSTALL |
| 37 | trim: 'false' |
| 38 | - string: |
Pavel Glazov | 9c357ee | 2023-12-11 16:10:16 +0400 | [diff] [blame] | 39 | default: '24000' |
Pavel Glazov | dbffe0f | 2022-11-09 23:01:43 +0400 | [diff] [blame] | 40 | description: '' |
| 41 | name: PLATFORM_STACK_INSTALL_TIMEOUT |
| 42 | trim: 'false' |
| 43 | - string: |
| 44 | default: 2019.2.0 |
| 45 | description: '' |
| 46 | name: MCP_VERSION |
| 47 | trim: 'false' |
| 48 | - string: |
| 49 | default: sre-team-infra |
| 50 | description: '' |
| 51 | name: NODE_NAME |
| 52 | trim: 'false' |
| 53 | - string: |
| 54 | default: '/home/jenkins/images/ubuntu-16-04-x64-mcp2019.2.0.qcow2' |
| 55 | description: '' |
| 56 | name: MCP_IMAGE_PATH1604 |
| 57 | trim: 'false' |
| 58 | - string: |
| 59 | default: /home/jenkins/images/cfg01-day01.qcow2 |
| 60 | description: '' |
| 61 | name: IMAGE_PATH_CFG01_DAY01 |
| 62 | trim: 'false' |
| 63 | - string: |
| 64 | default: 'cfg01.${{LAB_CONFIG_NAME}}-config-drive.iso' |
| 65 | description: ISO name that will be generated and downloaded to the /home/jenkins/images/ |
| 66 | name: CFG01_CONFIG_IMAGE_NAME |
| 67 | trim: 'false' |
| 68 | - string: |
| 69 | default: heat-cicd-pike-contrail-stb-sl |
| 70 | description: '' |
| 71 | name: ENV_NAME |
| 72 | trim: 'false' |
| 73 | - bool: |
| 74 | default: false |
| 75 | description: 'Add extra node to heat stack. Node without a role and with salt-minion' |
| 76 | name: DEPLOY_EMPTY_NODE |
| 77 | - string: |
| 78 | default: '' |
| 79 | description: |- |
| 80 | Example: refs/changes/89/411189/36 |
| 81 | (for now - only one reference allowed) |
| 82 | name: TCP_QA_REFS |
| 83 | trim: 'false' |
| 84 | - string: |
| 85 | default: refs/heads/release/proposed/2019.2.0 |
| 86 | description: reference to patchset in pipeline-library |
| 87 | name: PIPELINE_LIBRARY_REF |
| 88 | trim: 'false' |
| 89 | - string: |
| 90 | default: refs/heads/release/proposed/2019.2.0 |
| 91 | description: reference to patchset in mk-pipelines |
| 92 | name: MK_PIPELINES_REF |
| 93 | trim: 'false' |
| 94 | - string: |
| 95 | default: release/proposed/2019.2.0 |
| 96 | description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} |
| 97 | value |
| 98 | name: COOKIECUTTER_TEMPLATE_COMMIT |
| 99 | trim: 'false' |
| 100 | - string: |
| 101 | default: release/proposed/2019.2.0 |
| 102 | description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} |
| 103 | value |
| 104 | name: SALT_MODELS_SYSTEM_COMMIT |
| 105 | trim: 'false' |
| 106 | - string: |
| 107 | default: -m "run_cvp_func_sanity|run_cvp_tempest|run_stacklight" |
| 108 | description: |- |
| 109 | Pytest option -k or -m, with expression to select necessary tests. |
| 110 | Additional pytest options are allowed. |
| 111 | name: RUN_TEST_OPTS |
| 112 | trim: 'false' |
| 113 | - bool: |
| 114 | default: true |
| 115 | description: '' |
| 116 | name: SHUTDOWN_ENV_ON_TEARDOWN |
| 117 | - string: |
| 118 | default: '' |
| 119 | description: '' |
| 120 | name: COOKIECUTTER_REF_CHANGE |
| 121 | trim: 'false' |
| 122 | - string: |
| 123 | default: '' |
| 124 | description: '' |
| 125 | name: ENVIRONMENT_TEMPLATE_REF_CHANGE |
| 126 | trim: 'false' |
| 127 | - string: |
| 128 | default: '[MCP1.1_PIKE]Tempest' |
| 129 | description: '' |
| 130 | name: TEMPEST_TEST_SUITE_NAME |
| 131 | trim: 'false' |
| 132 | - string: |
| 133 | default: pike |
| 134 | description: '' |
| 135 | name: TEMPEST_IMAGE_VERSION |
| 136 | trim: 'false' |
| 137 | - string: |
| 138 | default: '' |
| 139 | description: '' |
| 140 | name: TEMPEST_TARGET |
| 141 | trim: 'false' |
| 142 | - string: |
| 143 | default: proposed |
| 144 | description: '' |
| 145 | name: UPDATE_REPO_CUSTOM_TAG |
| 146 | trim: 'false' |
| 147 | - bool: |
| 148 | default: true |
| 149 | description: If set, reports will be created in TestRail for this build |
| 150 | name: REPORT_TO_TESTRAIL |
| 151 | - choice: |
| 152 | choices: |
| 153 | - heat |
| 154 | - devops |
| 155 | description: '' |
| 156 | name: ENV_MANAGER |
| 157 | - string: |
| 158 | default: https://keystone.ic-eu.ssl.mirantis.net/v3 |
| 159 | description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3' |
| 160 | name: OS_AUTH_URL |
| 161 | trim: 'false' |
| 162 | - string: |
| 163 | default: sre-team |
| 164 | description: OpenStack project (tenant) name |
| 165 | name: OS_PROJECT_NAME |
| 166 | trim: 'false' |
| 167 | - string: |
| 168 | default: default |
| 169 | description: OpenStack user domain name |
| 170 | name: OS_USER_DOMAIN_NAME |
| 171 | trim: 'false' |
| 172 | - string: |
| 173 | default: sre-qa-ci-eu |
| 174 | description: Jenkins credentials ID with username and password to create a |
| 175 | heat stack in OpenStack |
| 176 | name: OS_CREDENTIALS |
| 177 | trim: 'false' |
| 178 | - string: |
| 179 | default: eu-cloud-low-flavors.env |
| 180 | description: |- |
| 181 | Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/ |
| 182 | , for example: microcloud-8116.env |
| 183 | name: LAB_PARAM_DEFAULTS |
| 184 | trim: 'false' |
| 185 | - string: |
| 186 | default: release/proposed/2019.2.0 |
| 187 | description: '' |
| 188 | name: JENKINS_PIPELINE_BRANCH |
| 189 | trim: 'false' |
| 190 | - string: |
Pavel Glazov | 47313b0 | 2022-11-16 14:59:57 +0400 | [diff] [blame] | 191 | default: ^heat_tempest_plugin.tests*|^tempest.api.image*|^tempest_horizon*|^tempest.api.identity*|^tempest.api.network*|^tempest.api.compute*|^tempest.api.volume*|^tempest.scenario*|^tempest.api.object_storage* |
| 192 | description: Exclude tungsten tests by default |
Pavel Glazov | dbffe0f | 2022-11-09 23:01:43 +0400 | [diff] [blame] | 193 | name: TEMPEST_PATTERN |
| 194 | trim: 'false' |
| 195 | - string: |
| 196 | default: refs/heads/release/proposed/2019.2.0 |
| 197 | description: '' |
| 198 | name: MCP_COMMON_SCRIPTS_REFS |
| 199 | trim: 'false' |
| 200 | - string: |
| 201 | default: proposed |
| 202 | description: '' |
| 203 | name: UPDATE_VERSION |
| 204 | trim: 'false' |
| 205 | - string: |
| 206 | name: UPDATES_MIRANTIS_VERSION |
| 207 | default: 'stable' |
| 208 | description: | |
| 209 | Overwrite subsection of updates.mirantis.com repository. |
| 210 | Effective only if enabled in cookiecutter context! |
| 211 | - bool: |
| 212 | default: true |
| 213 | description: Whether to perform dist-upgrade on virtual nodes during deployment |
| 214 | name: DIST_UPGRADE_NODES |
| 215 | - bool: |
| 216 | default: true |
| 217 | description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment' |
| 218 | name: UPGRADE_SALTSTACK |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 219 | - text: |
| 220 | default: '' |
| 221 | description: |- |
| 222 | Add env vars for deploy and testing |
| 223 | name: EXTRA_VARS |
| 224 | trim: 'false' |
Pavel Glazov | dbffe0f | 2022-11-09 23:01:43 +0400 | [diff] [blame] | 225 | pipeline-scm: |
| 226 | lightweight-checkout: false |
| 227 | scm: |
| 228 | - git: |
| 229 | branches: |
| 230 | - FETCH_HEAD |
| 231 | refspec: '${{TCP_QA_REFS}}' |
| 232 | url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa |
| 233 | clean: |
| 234 | before: true |
| 235 | script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy |
| 236 | logrotate: |
| 237 | daysToKeep: 365 |