| tierno | 2e21551 | 2018-11-28 09:37:52 +0000 | [diff] [blame] | 1 | /* |
| 2 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | you may not use this file except in compliance with the License. |
| 4 | You may obtain a copy of the License at |
| 5 | |
| 6 | http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | |
| 8 | Unless required by applicable law or agreed to in writing, software |
| 9 | distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| 11 | implied. |
| 12 | See the License for the specific language governing permissions and |
| 13 | limitations under the License. |
| 14 | */ |
| 15 | |
| garciadeblas | 726ccbe | 2018-05-25 15:23:15 +0200 | [diff] [blame] | 16 | properties([ |
| 17 | parameters([ |
| 18 | string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'), |
| 19 | string(defaultValue: 'osm/LCM', description: '', name: 'GERRIT_PROJECT'), |
| 20 | string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'), |
| 21 | string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'), |
| 22 | string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'), |
| 23 | booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'), |
| 24 | string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'), |
| 25 | ]) |
| 26 | ]) |
| 27 | |
| 28 | def devops_checkout() { |
| 29 | dir('devops') { |
| 30 | git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH |
| 31 | } |
| 32 | } |
| 33 | |
| garciadeblas | f393d39 | 2018-05-28 12:03:00 +0200 | [diff] [blame] | 34 | node('docker') { |
| garciadeblas | 726ccbe | 2018-05-25 15:23:15 +0200 | [diff] [blame] | 35 | checkout scm |
| 36 | devops_checkout() |
| 37 | |
| garciadeblas | f393d39 | 2018-05-28 12:03:00 +0200 | [diff] [blame] | 38 | ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy" |
| 39 | ci_stage_2.ci_pipeline( 'LCM', |
| garciadeblas | 726ccbe | 2018-05-25 15:23:15 +0200 | [diff] [blame] | 40 | params.PROJECT_URL_PREFIX, |
| 41 | params.GERRIT_PROJECT, |
| 42 | params.GERRIT_BRANCH, |
| 43 | params.GERRIT_REFSPEC, |
| 44 | params.GERRIT_PATCHSET_REVISION, |
| 45 | params.TEST_INSTALL, |
| 46 | params.ARTIFACTORY_SERVER) |
| 47 | } |