Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 1 | - job-template: |
| 2 | project-type: pipeline |
| 3 | description: '{job-description}' |
| 4 | concurrent: true |
| 5 | disabled: false |
| 6 | name: released-heat-cicd-pike-dvr-sl |
| 7 | parameters: |
| 8 | - string: |
| 9 | default: released-heat-cicd-pike-dvr-sl |
| 10 | description: '' |
| 11 | name: LAB_CONFIG_NAME |
| 12 | trim: 'false' |
| 13 | - string: |
| 14 | default: core,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: |
Hanna Arhipova | d331eb9 | 2020-04-08 18:13:16 +0300 | [diff] [blame] | 20 | default: '18000' |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 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: |
Hanna Arhipova | d331eb9 | 2020-04-08 18:13:16 +0300 | [diff] [blame] | 31 | default: '15000' |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 32 | description: '' |
| 33 | name: PLATFORM_STACK_INSTALL_TIMEOUT |
| 34 | trim: 'false' |
| 35 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 36 | default: "{previous-version}" |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 37 | description: '' |
| 38 | name: MCP_VERSION |
| 39 | trim: 'false' |
| 40 | - string: |
Hanna Arhipova | c2965a4 | 2020-01-21 12:27:33 +0200 | [diff] [blame] | 41 | default: sre-team-infra |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 42 | description: '' |
| 43 | name: NODE_NAME |
| 44 | trim: 'false' |
| 45 | - string: |
Hanna Arhipova | c2965a4 | 2020-01-21 12:27:33 +0200 | [diff] [blame] | 46 | default: /home/jenkins/images/ubuntu-16-04-x64-mcp2019.2.0.qcow2 |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 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-heat-cicd-pike-dvr-sl |
| 62 | description: '' |
| 63 | name: ENV_NAME |
| 64 | trim: 'false' |
Hanna Arhipova | 31cb1d8 | 2021-01-27 09:41:11 +0200 | [diff] [blame] | 65 | - bool: |
| 66 | default: false |
| 67 | description: 'Add extra node to heat stack. Node without a role and with salt-minion' |
| 68 | name: DEPLOY_EMPTY_NODE |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 69 | - string: |
| 70 | default: '' |
| 71 | description: |- |
| 72 | Example: refs/changes/89/411189/36 |
| 73 | (for now - only one reference allowed) |
| 74 | name: TCP_QA_REFS |
| 75 | trim: 'false' |
| 76 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 77 | default: refs/tags/{previous-version} |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 78 | description: reference to patchset in pipeline-library |
| 79 | name: PIPELINE_LIBRARY_REF |
| 80 | trim: 'false' |
| 81 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 82 | default: refs/tags/{previous-version} |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 83 | description: reference to patchset in mk-pipelines |
| 84 | name: MK_PIPELINES_REF |
| 85 | trim: 'false' |
| 86 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 87 | default: refs/tags/{previous-version} |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 88 | description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} |
| 89 | value |
| 90 | name: COOKIECUTTER_TEMPLATE_COMMIT |
| 91 | trim: 'false' |
| 92 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 93 | default: refs/tags/{previous-version} |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 94 | description: Can be 'master' or 'proposed'. If empty, then takes ${{MCP_VERSION}} |
| 95 | value |
| 96 | name: SALT_MODELS_SYSTEM_COMMIT |
| 97 | trim: 'false' |
Hanna Arhipova | b0bfccd | 2020-01-15 11:19:00 +0200 | [diff] [blame] | 98 | - text: |
| 99 | default: |- |
Hanna Arhipova | f621ed6 | 2020-09-18 10:43:34 +0300 | [diff] [blame] | 100 | --keep-duplicates --maxfail=1 \ |
Hanna Arhipova | 696e089 | 2021-02-08 17:27:01 +0200 | [diff] [blame] | 101 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \ |
Hanna Arhipova | 14c8c1f | 2020-02-20 17:38:55 +0200 | [diff] [blame] | 102 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \ |
| 103 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight \ |
| 104 | \ |
| 105 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain \ |
| 106 | tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \ |
| 107 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera \ |
| 108 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \ |
| 109 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \ |
| 110 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \ |
| 111 | \ |
Hanna Arhipova | 696e089 | 2021-02-08 17:27:01 +0200 | [diff] [blame] | 112 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \ |
Hanna Arhipova | 14c8c1f | 2020-02-20 17:38:55 +0200 | [diff] [blame] | 113 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \ |
Hanna Arhipova | b0bfccd | 2020-01-15 11:19:00 +0200 | [diff] [blame] | 114 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight |
| 115 | |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 116 | description: |- |
| 117 | Pytest option -k or -m, with expression to select necessary tests. |
| 118 | Additional pytest options are allowed. |
Hanna Arhipova | b0bfccd | 2020-01-15 11:19:00 +0200 | [diff] [blame] | 119 | Procedure according to https://docs.mirantis.com/mcp/q4-18/mcp-release-notes/mu/mu-7/mu-7-apply-updates.html |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 120 | name: RUN_TEST_OPTS |
| 121 | trim: 'false' |
| 122 | - bool: |
| 123 | default: true |
| 124 | description: '' |
| 125 | name: SHUTDOWN_ENV_ON_TEARDOWN |
| 126 | - string: |
| 127 | default: '' |
| 128 | description: '' |
| 129 | name: COOKIECUTTER_REF_CHANGE |
| 130 | trim: 'false' |
| 131 | - string: |
| 132 | default: '' |
| 133 | description: '' |
| 134 | name: ENVIRONMENT_TEMPLATE_REF_CHANGE |
| 135 | trim: 'false' |
| 136 | - string: |
| 137 | default: '[MCP1.1_PIKE]Tempest' |
| 138 | description: '' |
| 139 | name: TEMPEST_TEST_SUITE_NAME |
| 140 | trim: 'false' |
| 141 | - string: |
| 142 | default: pike |
| 143 | description: '' |
| 144 | name: TEMPEST_IMAGE_VERSION |
| 145 | trim: 'false' |
| 146 | - string: |
| 147 | default: '' |
| 148 | description: '' |
| 149 | name: TEMPEST_TARGET |
| 150 | trim: 'false' |
| 151 | - string: |
| 152 | default: '' |
| 153 | description: '' |
| 154 | name: UPDATE_REPO_CUSTOM_TAG |
| 155 | trim: 'false' |
| 156 | - bool: |
| 157 | default: true |
| 158 | description: If set, reports will be created in TestRail for this build |
| 159 | name: REPORT_TO_TESTRAIL |
| 160 | - choice: |
| 161 | choices: |
| 162 | - heat |
| 163 | - devops |
| 164 | description: '' |
| 165 | name: ENV_MANAGER |
| 166 | - string: |
| 167 | default: https://ic-eu.ssl.mirantis.net:5000/v3 |
Hanna Arhipova | 9565943 | 2020-01-28 14:24:02 +0200 | [diff] [blame] | 168 | description: 'Openstack keystone catalog endpoint, for example https://10.90.0.80:5000/v3' |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 169 | name: OS_AUTH_URL |
| 170 | trim: 'false' |
| 171 | - string: |
| 172 | default: sre-team |
| 173 | description: OpenStack project (tenant) name |
| 174 | name: OS_PROJECT_NAME |
| 175 | trim: 'false' |
| 176 | - string: |
Hanna Arhipova | 9565943 | 2020-01-28 14:24:02 +0200 | [diff] [blame] | 177 | default: default |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 178 | description: OpenStack user domain name |
| 179 | name: OS_USER_DOMAIN_NAME |
| 180 | trim: 'false' |
| 181 | - string: |
Hanna Arhipova | 9565943 | 2020-01-28 14:24:02 +0200 | [diff] [blame] | 182 | default: sre-qa-ci-eu |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 183 | description: Jenkins credentials ID with username and password to create a |
| 184 | heat stack in OpenStack |
| 185 | name: OS_CREDENTIALS |
| 186 | trim: 'false' |
| 187 | - string: |
Hanna Arhipova | c692a12 | 2021-04-13 11:47:18 +0300 | [diff] [blame] | 188 | default: eu-cloud-low-flavors.env |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 189 | description: |- |
| 190 | Heat template environment filename with 'parameter_defaults' dict, placed in tcp_tests/templates/_heat_environments/ |
| 191 | , for example: microcloud-8116.env |
| 192 | name: LAB_PARAM_DEFAULTS |
| 193 | trim: 'false' |
| 194 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 195 | default: refs/tags/{previous-version} |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 196 | description: '' |
| 197 | name: JENKINS_PIPELINE_BRANCH |
| 198 | trim: 'false' |
| 199 | - string: |
Hanna Arhipova | 7cd2c2c | 2020-09-10 08:20:50 +0300 | [diff] [blame] | 200 | default: set=smoke |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 201 | description: '' |
| 202 | name: TEMPEST_PATTERN |
| 203 | trim: 'false' |
| 204 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 205 | default: refs/tags/{previous-version} |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 206 | description: '' |
| 207 | name: MCP_COMMON_SCRIPTS_REFS |
| 208 | trim: 'false' |
| 209 | - string: |
Hanna Arhipova | 6c41b17 | 2020-05-04 16:12:13 +0300 | [diff] [blame] | 210 | default: "{previous-version}" |
Hanna Arhipova | c335b24 | 2020-01-20 18:03:23 +0200 | [diff] [blame] | 211 | description: 'for formula repo http://mirror.mirantis.com/update/UPDATE_VERSION/salt-formulas/xenial' |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 212 | name: UPDATE_VERSION |
| 213 | trim: 'false' |
Dmitriy Kruglov | 758f99c | 2020-02-04 12:04:31 +0100 | [diff] [blame] | 214 | - bool: |
| 215 | default: false |
| 216 | description: Whether to perform dist-upgrade on virtual nodes during deployment |
| 217 | name: DIST_UPGRADE_NODES |
PGlazov | ed19b35 | 2020-05-21 16:42:27 +0400 | [diff] [blame] | 218 | - bool: |
| 219 | default: false |
| 220 | description: 'Works starting from MCP 2019.2.10 or master. Whether to apply saltstack updates on all nodes in cluster before deployment' |
| 221 | name: UPGRADE_SALTSTACK |
Sergey Galkin | 24ebd76 | 2020-01-14 14:36:34 +0400 | [diff] [blame] | 222 | pipeline-scm: |
| 223 | lightweight-checkout: false |
| 224 | scm: |
| 225 | - git: |
| 226 | branches: |
| 227 | - FETCH_HEAD |
| 228 | refspec: ${{TCP_QA_REFS}} |
| 229 | url: https://gerrit.mcp.mirantis.com/mcp/tcp-qa |
| 230 | script-path: jobs/pipelines/deploy-cicd-and-run-tests.groovy |