blob: 5f1730f6550134d1ec4599465dd1218e27f97c10 [file] [log] [blame]
Vasyl Saienko1cd5d7c2017-07-28 18:39:01 +03001/**
2
3 * Launch system tests against new package.
4
5 * Flow parameters:
6 * CREDENTIALS_ID
Vasyl Saienko1cd5d7c2017-07-28 18:39:01 +03007 * SALT_OPTS
8 * STACK_DEPLOY_JOB
9
10**/
11def common = new com.mirantis.mk.Common()
12def gerrit = new com.mirantis.mk.Gerrit()
Jakub Josefa63f9862018-01-11 17:58:38 +010013timeout(time: 12, unit: 'HOURS') {
14 node {
15 def cred = common.getCredentials(CREDENTIALS_ID, 'key')
16 def gerritChange = gerrit.getGerritChange(cred.username, GERRIT_HOST, GERRIT_CHANGE_NUMBER, CREDENTIALS_ID, true)
Vasyl Saienko1cd5d7c2017-07-28 18:39:01 +030017
Jakub Josefa63f9862018-01-11 17:58:38 +010018 stage('Trigger deploy job') {
19 build(job: STACK_DEPLOY_JOB, parameters: [
20 [$class: 'StringParameterValue', name: 'OPENSTACK_API_PROJECT', value: 'mcp-oscore'],
21 [$class: 'StringParameterValue', name: 'STACK_TEST', value: ''],
22 [$class: 'BooleanParameterValue', name: 'TEST_DOCKER_INSTALL', value: false]
23 ])
24 }
Vasyl Saienko1cd5d7c2017-07-28 18:39:01 +030025 }
26}