Hanna Arhipova | 31cb1d8 | 2021-01-27 09:41:11 +0200 | [diff] [blame] | 1 | /* |
| 2 | * DEPLOY_EMPTY_NODE Add extra node to heat stack. Node without a role and with salt-minion |
| 3 | */ |
| 4 | |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 5 | @Library('tcp-qa')_ |
| 6 | |
| 7 | def common = new com.mirantis.mk.Common() |
| 8 | def shared = new com.mirantis.system_qa.SharedPipeline() |
| 9 | def steps = "hardware,create_model,salt," + env.DRIVETRAIN_STACK_INSTALL + "," + env.PLATFORM_STACK_INSTALL |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 10 | def env_manager = env.ENV_MANAGER ?: 'devops' |
Hanna Arhipova | 6f49352 | 2019-12-25 04:23:28 +0200 | [diff] [blame] | 11 | def batch_size = env.BATCH_SIZE ?: '' |
Dmitriy Kruglov | 28b68d6 | 2020-02-12 02:27:25 +0100 | [diff] [blame] | 12 | def dist_upgrade_nodes = "${env.DIST_UPGRADE_NODES}" != "false" ? true : false |
PGlazov | ed19b35 | 2020-05-21 16:42:27 +0400 | [diff] [blame] | 13 | def upgrade_saltstack = "${env.UPGRADE_SALTSTACK}" != "false" ? true : false |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 14 | |
| 15 | if (env_manager == 'devops') { |
| 16 | jenkins_slave_node_name = "${NODE_NAME}" |
Tatyana Leontovich | c18c814 | 2019-05-16 15:20:33 +0300 | [diff] [blame] | 17 | node_with_reports = "${NODE_NAME}" |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 18 | make_snapshot_stages = "${env.MAKE_SNAPSHOT_STAGES}" != "false" ? true : false |
| 19 | } else if (env_manager == 'heat') { |
Anna Arhipova | 76b1f93 | 2022-08-05 10:07:32 +0200 | [diff] [blame] | 20 | jenkins_slave_node_name = "openstack_slave_${env.ENV_NAME}" |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 21 | make_snapshot_stages = false |
Tatyana Leontovich | c18c814 | 2019-05-16 15:20:33 +0300 | [diff] [blame] | 22 | node_with_reports = jenkins_slave_node_name |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 23 | } |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 24 | |
Dennis Dmitriev | 2700732 | 2019-05-03 19:21:44 +0300 | [diff] [blame] | 25 | currentBuild.description = "${NODE_NAME}:${ENV_NAME}<br>" |
Dennis Dmitriev | 201a35e | 2018-08-06 01:37:05 +0300 | [diff] [blame] | 26 | |
PGlazov | ed19b35 | 2020-05-21 16:42:27 +0400 | [diff] [blame] | 27 | def deploy(shared, common, steps, env_manager, batch_size, dist_upgrade_nodes, upgrade_saltstack) { |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 28 | def report_text = '' |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 29 | try { |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 30 | |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 31 | stage("Clean the environment and clone tcp-qa") { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 32 | shared.prepare_working_dir(env_manager) |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 33 | } |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 34 | |
Hanna Arhipova | 50bd772 | 2021-05-14 14:13:46 +0300 | [diff] [blame] | 35 | if (env.IPMI_CREDS) { |
| 36 | withCredentials([ |
| 37 | [$class : 'UsernamePasswordMultiBinding', |
| 38 | credentialsId : "${IPMI_CREDS}", |
| 39 | passwordVariable: 'IPMI_PASS', |
| 40 | usernameVariable: 'IPMI_USER'] |
| 41 | ]) { |
| 42 | env.IPMI_PASS = IPMI_PASS |
| 43 | env.IPMI_USER = IPMI_USER |
| 44 | shared.reboot_hardware_nodes("${IPMI_CREDS}") |
| 45 | } |
| 46 | } |
| 47 | |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 48 | stage("Create environment, generate model, bootstrap the salt-cluster") { |
| 49 | // steps: "hardware,create_model,salt" |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 50 | if (env_manager == 'devops') { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 51 | shared.swarm_bootstrap_salt_cluster_devops() |
| 52 | } else if (env_manager == 'heat') { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 53 | // If shared.swarm_bootstrap_salt_cluster_heat() failed, |
| 54 | // do not schedule shared.swarm_testrail_report() on the non existing Jenkins slave |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 55 | shared.swarm_bootstrap_salt_cluster_heat(jenkins_slave_node_name) |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 56 | // When the Heat stack created, set jenkins_slave_node_name to the new Jenkins slave |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 57 | // disable dos.py snapshots for 'heat' manager |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 58 | } else { |
| 59 | throw new Exception("Unknow env_manager: '${env_manager}'") |
| 60 | } |
Dennis Dmitriev | fd0b78c | 2019-05-30 00:16:04 +0300 | [diff] [blame] | 61 | |
| 62 | if (fileExists("jenkins_agent_description.txt")) { |
| 63 | def String jenkins_agent_description = readFile("jenkins_agent_description.txt") |
| 64 | currentBuild.description += "${jenkins_agent_description}" |
| 65 | } |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 66 | } |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 67 | |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 68 | stage("Install core infrastructure and deploy CICD nodes") { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 69 | if (env.DRIVETRAIN_STACK_INSTALL) { |
| 70 | // steps: env.DRIVETRAIN_STACK_INSTALL |
PGlazov | d4b70a0 | 2020-05-26 13:28:59 +0400 | [diff] [blame] | 71 | shared.swarm_deploy_cicd(env.DRIVETRAIN_STACK_INSTALL, env.DRIVETRAIN_STACK_INSTALL_TIMEOUT, jenkins_slave_node_name, make_snapshot_stages, batch_size, dist_upgrade_nodes, upgrade_saltstack) |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 72 | } else { |
| 73 | common.printMsg("DRIVETRAIN_STACK_INSTALL is empty, skipping 'swarm-deploy-cicd' job", "green") |
| 74 | } |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 75 | } |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 76 | |
Dennis Dmitriev | ee5ef23 | 2018-08-31 13:53:18 +0300 | [diff] [blame] | 77 | stage("Deploy platform components") { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 78 | if (env.PLATFORM_STACK_INSTALL) { |
| 79 | // steps: env.PLATFORM_STACK_INSTALL |
PGlazov | ed19b35 | 2020-05-21 16:42:27 +0400 | [diff] [blame] | 80 | shared.swarm_deploy_platform(env.PLATFORM_STACK_INSTALL, env.PLATFORM_STACK_INSTALL_TIMEOUT, jenkins_slave_node_name, make_snapshot_stages, batch_size, dist_upgrade_nodes, upgrade_saltstack) |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 81 | } else { |
| 82 | common.printMsg("PLATFORM_STACK_INSTALL is empty, skipping 'swarm-deploy-platform' job", "green") |
| 83 | } |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 84 | } |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 85 | |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 86 | currentBuild.result = 'SUCCESS' |
Dennis Dmitriev | fde667f | 2018-07-23 16:26:50 +0300 | [diff] [blame] | 87 | |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 88 | } catch (e) { |
Dennis Dmitriev | b08c077 | 2018-10-17 15:10:26 +0300 | [diff] [blame] | 89 | common.printMsg("Deploy is failed: " + e.message , "purple") |
| 90 | report_text = e.message |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 91 | if (make_snapshot_stages) { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 92 | def snapshot_name = "deploy_failed" |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 93 | shared.run_cmd("""\ |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 94 | dos.py suspend ${ENV_NAME} || true |
| 95 | dos.py snapshot ${ENV_NAME} ${snapshot_name} || true |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 96 | """) |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 97 | if ("${env.SHUTDOWN_ENV_ON_TEARDOWN}" == "false") { |
| 98 | shared.run_cmd("""\ |
| 99 | dos.py resume ${ENV_NAME} || true |
| 100 | """) |
| 101 | } |
| 102 | shared.devops_snapshot_info(snapshot_name) |
Dennis Dmitriev | 6f8b0d0 | 2018-07-30 21:27:08 +0300 | [diff] [blame] | 103 | } |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 104 | throw e |
| 105 | } finally { |
| 106 | shared.create_deploy_result_report(steps, currentBuild.result, report_text) |
| 107 | } |
| 108 | } |
| 109 | |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 110 | def test(shared, common, steps, env_manager) { |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 111 | try { |
| 112 | stage("Run tests") { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 113 | if (env.RUN_TEST_OPTS) { |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 114 | shared.swarm_run_pytest(steps, jenkins_slave_node_name, make_snapshot_stages) |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 115 | } else { |
| 116 | common.printMsg("RUN_TEST_OPTS is empty, skipping 'swarm-run-pytest' job", "green") |
| 117 | } |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 118 | } |
| 119 | |
| 120 | } catch (e) { |
Dennis Dmitriev | b08c077 | 2018-10-17 15:10:26 +0300 | [diff] [blame] | 121 | common.printMsg("Tests are failed: " + e.message, "purple") |
Dennis Dmitriev | 0244741 | 2019-04-17 18:02:46 +0300 | [diff] [blame] | 122 | if (make_snapshot_stages) { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 123 | def snapshot_name = "tests_failed" |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 124 | shared.run_cmd("""\ |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 125 | dos.py suspend ${ENV_NAME} || true |
| 126 | dos.py snapshot ${ENV_NAME} ${snapshot_name} || true |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 127 | """) |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 128 | if ("${env.SHUTDOWN_ENV_ON_TEARDOWN}" == "false") { |
| 129 | shared.run_cmd("""\ |
| 130 | dos.py resume ${ENV_NAME} || true |
| 131 | """) |
| 132 | } |
| 133 | shared.devops_snapshot_info(snapshot_name) |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 134 | } |
Dennis Dmitriev | b08c077 | 2018-10-17 15:10:26 +0300 | [diff] [blame] | 135 | throw e |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 136 | } |
| 137 | } |
| 138 | |
Dennis Dmitriev | 1f08b0c | 2019-05-27 17:03:53 +0300 | [diff] [blame] | 139 | |
Hanna Arhipova | 0b6df82 | 2020-08-07 21:50:28 +0300 | [diff] [blame] | 140 | timeout(time: 23, unit: 'HOURS') { |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 141 | // main |
Tatyana Leontovich | bfbc483 | 2018-12-27 12:47:23 +0200 | [diff] [blame] | 142 | // Temporary disable throttle to check how it will run |
| 143 | //throttle(['fuel_devops_environment']) { |
Dennis Dmitriev | e4b831b | 2018-08-15 17:16:10 +0300 | [diff] [blame] | 144 | node ("${NODE_NAME}") { |
Hanna Arhipova | 4d49362 | 2020-02-06 18:14:46 +0200 | [diff] [blame] | 145 | env.slave_workdir = pwd() |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 146 | def extra_vars = EXTRA_VARS ?: '' |
| 147 | if (extra_vars != '') { |
| 148 | extra_vars = extra_vars.split('\n').collect{it as String} |
| 149 | } |
| 150 | else { |
| 151 | extra_vars = [] |
| 152 | } |
| 153 | withEnv(extra_vars) { |
| 154 | try { |
| 155 | // run deploy stages |
| 156 | deploy(shared, common, steps, env_manager, batch_size, dist_upgrade_nodes, upgrade_saltstack) |
| 157 | // run test stages |
| 158 | test(shared, common, steps, env_manager) |
| 159 | } catch (e) { |
| 160 | common.printMsg("Job is failed: " + e.message, "purple") |
| 161 | throw e |
| 162 | } finally { |
| 163 | if (make_snapshot_stages) { |
| 164 | // shutdown the environment if required |
| 165 | if ("${env.SHUTDOWN_ENV_ON_TEARDOWN}" == "true") { |
| 166 | shared.run_cmd("""\ |
| 167 | dos.py destroy ${ENV_NAME} || true |
| 168 | """) |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | stage("Archive all xml reports") { |
| 173 | dir("${env.slave_workdir }") { |
| 174 | archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz" |
| 175 | } |
| 176 | } |
| 177 | // delete directory with artifacts from swarm-run-pytest pipeline |
| 178 | // for excluding xml duplicates |
| 179 | if (fileExists("tmp")) { |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 180 | shared.run_cmd("""\ |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 181 | rm -rf tmp/ |
Dennis Dmitriev | 4c38347 | 2019-04-12 13:58:06 +0300 | [diff] [blame] | 182 | """) |
| 183 | } |
Dennis Dmitriev | fbf4227 | 2018-10-23 00:19:50 +0300 | [diff] [blame] | 184 | |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 185 | if ("${env.REPORT_TO_TESTRAIL}" != "false") { |
| 186 | stage("report results to testrail from jenkins master") { |
| 187 | common.printMsg("Running on: " + node_with_reports, "blue") |
| 188 | common.printMsg("Running on: " + env.NODE_NAME, "blue") |
| 189 | shared.swarm_testrail_report(steps, env.NODE_NAME) |
Hanna Arhipova | 4d49362 | 2020-02-06 18:14:46 +0200 | [diff] [blame] | 190 | } |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 191 | stage("Store TestRail reports to job description") { |
| 192 | if (fileExists("description.txt")) { |
| 193 | def String description = readFile("description.txt") |
| 194 | currentBuild.description += "${description}" |
| 195 | } |
Tatyana Leontovich | 6cce9d6 | 2019-05-24 19:43:07 +0300 | [diff] [blame] | 196 | } |
Vladimir Jigulin | b02dcc5 | 2019-04-02 15:57:53 +0400 | [diff] [blame] | 197 | } |
Dennis Dmitriev | fd0b78c | 2019-05-30 00:16:04 +0300 | [diff] [blame] | 198 | |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 199 | if (fileExists("jenkins_agent_description.txt")) { |
| 200 | // if there is a separated foundation node on $jenkins_slave_node_name, |
| 201 | // then archive artifacts also on that node |
| 202 | if (jenkins_slave_node_name != env.NODE_NAME) { |
| 203 | node ("${jenkins_slave_node_name}") { |
| 204 | dir("${env.slave_workdir }") { |
| 205 | stage("Archive all xml reports from node ${jenkins_slave_node_name}") { |
| 206 | archiveArtifacts artifacts: "**/*.xml,**/*.ini,**/*.log,**/*.tar.gz,*.xml,*.ini,*.log,*.tar.gz", allowEmptyArchive: true |
Hanna Arhipova | 4d49362 | 2020-02-06 18:14:46 +0200 | [diff] [blame] | 207 | } |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 208 | if ("${env.REPORT_TO_TESTRAIL}" != "false") { |
| 209 | stage("report results to testrail") { |
| 210 | common.printMsg("Running on: " + node_with_reports, "blue") |
| 211 | shared.swarm_testrail_report(steps, node_with_reports) |
| 212 | } |
| 213 | stage("Store TestRail reports to job description from ${jenkins_slave_node_name}") { |
| 214 | if (fileExists("description.txt")) { |
| 215 | def String description = readFile("description.txt") |
| 216 | currentBuild.description += "${description}" |
| 217 | } |
Hanna Arhipova | 4d49362 | 2020-02-06 18:14:46 +0200 | [diff] [blame] | 218 | } |
Dennis Dmitriev | fd0b78c | 2019-05-30 00:16:04 +0300 | [diff] [blame] | 219 | } |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 220 | } //dir |
| 221 | } // node |
| 222 | } |
Dennis Dmitriev | fd0b78c | 2019-05-30 00:16:04 +0300 | [diff] [blame] | 223 | } |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 224 | //run upgrade env to proposed |
| 225 | if (env.RUN_UPGRADE_AFTER_JOB == "true" && currentBuild.result == 'SUCCESS') { |
| 226 | network_backend = env.PLATFORM_STACK_INSTALL.contains("contrail") ? 'contrail' : 'dvr' |
| 227 | upgrade_job = "mcp-update-${env.TEMPEST_IMAGE_VERSION}-${network_backend}-sl" |
| 228 | upgrade_to_tag = '' |
| 229 | contrail_upgrade_line = '' |
| 230 | if(env.UPGRADE_TO_TAG == "true") { |
| 231 | upgrade_to_tag = '--update-to-tag ${env.UPGRADE_VERSION_TAG} ' |
| 232 | } |
| 233 | if(env.PLATFORM_STACK_INSTALL.contains("contrail")) { |
| 234 | contrail_upgrade_line = "tcp_tests/tests/system/test_upgrade_contrail.py::TestUpdateContrail " |
| 235 | } |
| 236 | run_test_opts = """--keep-duplicates --maxfail=1 \ |
| 237 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_drivetrain ${upgrade_to_tag} \ |
| 238 | ${contrail_upgrade_line}\ |
| 239 | tcp_tests/tests/system/test_mcp_update.py::TestOpenstackUpdate \ |
| 240 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_galera --update-mysql-version 5.7 \ |
| 241 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_rabbit \ |
| 242 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_stacklight \ |
| 243 | tcp_tests/tests/system/test_mcp_update.py::TestUpdateMcpCluster::test_update_ceph \ |
| 244 | \ |
| 245 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_tempest \ |
| 246 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_func_sanity \ |
| 247 | tcp_tests/tests/system/test_cvp_pipelines.py::TestCvpPipelines::test_run_cvp_stacklight |
| 248 | """ |
| 249 | if (env.IPMI_CREDS) { |
| 250 | upgrade_job = "mcp-update-bm-b300-queens-ovs-maas" |
| 251 | } |
| 252 | def deploy = build job: "${upgrade_job}", |
| 253 | parameters: [ |
| 254 | string(name: 'PARENT_NODE_NAME', value: "openstack_slave_${env.ENV_NAME}"), |
| 255 | string(name: 'TCP_QA_REFS', value: env.TCP_QA_REFS), |
| 256 | string(name: 'PASSED_STEPS', value: steps), |
| 257 | string(name: 'TEMPEST_TEST_SUITE_NAME', value: env.TEMPEST_TEST_SUITE_NAME), |
| 258 | string(name: 'NODE', value: "openstack_slave_${env.ENV_NAME}"), |
| 259 | string(name: 'RUN_TEST_OPTS', value: run_test_opts) |
| 260 | ], |
| 261 | wait: false, |
| 262 | propagate: false |
Anna Arhipova | 5d936b8 | 2022-08-05 10:07:32 +0200 | [diff] [blame] | 263 | } |
dtsapikov | 6067989 | 2022-11-16 17:01:16 +0400 | [diff] [blame] | 264 | } // try |
| 265 | } |
Dennis Dmitriev | 2700732 | 2019-05-03 19:21:44 +0300 | [diff] [blame] | 266 | } // node |
| 267 | |
| 268 | |
Dennis Dmitriev | 1f08b0c | 2019-05-27 17:03:53 +0300 | [diff] [blame] | 269 | //} |
| 270 | } // timeout |