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 |
Vasyl Saienko | 1cd5d7c | 2017-07-28 18:39:01 +0300 | [diff] [blame] | 7 | * SALT_OPTS |
| 8 | * STACK_DEPLOY_JOB |
| 9 | |
| 10 | **/ |
| 11 | def common = new com.mirantis.mk.Common() |
| 12 | def gerrit = new com.mirantis.mk.Gerrit() |
Jakub Josef | a63f986 | 2018-01-11 17:58:38 +0100 | [diff] [blame] | 13 | timeout(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 Saienko | 1cd5d7c | 2017-07-28 18:39:01 +0300 | [diff] [blame] | 17 | |
Jakub Josef | a63f986 | 2018-01-11 17:58:38 +0100 | [diff] [blame] | 18 | 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 Saienko | 1cd5d7c | 2017-07-28 18:39:01 +0300 | [diff] [blame] | 25 | } |
| 26 | } |