blob: c660c28e72c976f942b067820038f3d42fa00d96 [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
7 * EXTRA_FORMULAS
8 * FORMULAS_REVISION
9 * FORMULAS_SOURCE
10 * SALT_OPTS
11 * STACK_DEPLOY_JOB
12
13**/
14def common = new com.mirantis.mk.Common()
15def gerrit = new com.mirantis.mk.Gerrit()
Jakub Josefa63f9862018-01-11 17:58:38 +010016timeout(time: 12, unit: 'HOURS') {
17 node {
18 def cred = common.getCredentials(CREDENTIALS_ID, 'key')
19 def gerritChange = gerrit.getGerritChange(cred.username, GERRIT_HOST, GERRIT_CHANGE_NUMBER, CREDENTIALS_ID, true)
Vasyl Saienko1cd5d7c2017-07-28 18:39:01 +030020
Jakub Josefa63f9862018-01-11 17:58:38 +010021 stage('Trigger deploy job') {
22 build(job: STACK_DEPLOY_JOB, parameters: [
23 [$class: 'StringParameterValue', name: 'OPENSTACK_API_PROJECT', value: 'mcp-oscore'],
24 [$class: 'StringParameterValue', name: 'STACK_TEST', value: ''],
25 [$class: 'BooleanParameterValue', name: 'TEST_DOCKER_INSTALL', value: false]
26 ])
27 }
Vasyl Saienko1cd5d7c2017-07-28 18:39:01 +030028 }
29}