Vasyl Saienko | 1cd5d7c | 2017-07-28 18:39:01 +0300 | [diff] [blame] | 1 | /** |
| 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 | **/ |
| 14 | def common = new com.mirantis.mk.Common() |
| 15 | def gerrit = new com.mirantis.mk.Gerrit() |
| 16 | |
Ruslan Kamaldinov | 6feef40 | 2017-08-02 16:55:58 +0400 | [diff] [blame] | 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 Saienko | 1cd5d7c | 2017-07-28 18:39:01 +0300 | [diff] [blame] | 20 | |
Ruslan Kamaldinov | 6feef40 | 2017-08-02 16:55:58 +0400 | [diff] [blame] | 21 | 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 | ]) |
Vasyl Saienko | 1cd5d7c | 2017-07-28 18:39:01 +0300 | [diff] [blame] | 27 | } |
| 28 | } |