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 | |
| 17 | |
| 18 | timestamps { |
| 19 | node { |
| 20 | def cred = common.getCredentials(CREDENTIALS_ID, 'key') |
| 21 | def gerritChange = gerrit.getGerritChange(cred.username, GERRIT_HOST, GERRIT_CHANGE_NUMBER, CREDENTIALS_ID, true) |
| 22 | |
| 23 | stage('Trigger deploy job') { |
| 24 | build(job: STACK_DEPLOY_JOB, parameters: [ |
| 25 | [$class: 'StringParameterValue', name: 'OPENSTACK_API_PROJECT', value: 'mcp-oscore'], |
| 26 | [$class: 'StringParameterValue', name: 'STACK_TEST', value: ''], |
| 27 | [$class: 'BooleanParameterValue', name: 'TEST_DOCKER_INSTALL', value: false] |
| 28 | ]) |
| 29 | } |
| 30 | } |
| 31 | } |