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