| Mike Marchetti | 1b14cd8 | 2017-07-05 12:03:21 -0400 | [diff] [blame] | 1 | properties([ |
| 2 | parameters([ |
| 3 | string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'), |
| 4 | string(defaultValue: 'osm/RO', description: '', name: 'GERRIT_PROJECT'), |
| 5 | string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'), |
| 6 | string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'), |
| 7 | string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'), |
| 8 | booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'), |
| Wesley Hirsch | 3b46e0e | 2017-09-08 17:38:06 -0400 | [diff] [blame] | 9 | string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'), |
| Mike Marchetti | 1b14cd8 | 2017-07-05 12:03:21 -0400 | [diff] [blame] | 10 | ]) |
| 11 | ]) |
| 12 | |
| 13 | def devops_checkout() { |
| 14 | dir('devops') { |
| garciadeblas | c2abdbf | 2017-09-26 13:51:04 +0200 | [diff] [blame] | 15 | git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: "master" |
| Mike Marchetti | 1b14cd8 | 2017-07-05 12:03:21 -0400 | [diff] [blame] | 16 | } |
| 17 | } |
| 18 | |
| Wesley Hirsch | 6077101 | 2017-09-08 17:34:14 -0400 | [diff] [blame] | 19 | node('docker') { |
| Mike Marchetti | 1b14cd8 | 2017-07-05 12:03:21 -0400 | [diff] [blame] | 20 | checkout scm |
| 21 | devops_checkout() |
| 22 | |
| 23 | ci_helper = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy" |
| 24 | ci_helper.ci_pipeline( 'RO', |
| 25 | params.PROJECT_URL_PREFIX, |
| 26 | params.GERRIT_PROJECT, |
| 27 | params.GERRIT_BRANCH, |
| 28 | params.GERRIT_REFSPEC, |
| 29 | params.GERRIT_PATCHSET_REVISION, |
| Wesley Hirsch | 3b46e0e | 2017-09-08 17:38:06 -0400 | [diff] [blame] | 30 | params.TEST_INSTALL, |
| 31 | params.ARTIFACTORY_SERVER) |
| garciadeblas | 3a82fc0 | 2017-04-21 15:03:48 +0200 | [diff] [blame] | 32 | } |