blob: 15353c6cbcfac50b29118009457b236fe27be9f7 [file] [log] [blame]
garciadeblas726ccbe2018-05-25 15:23:15 +02001properties([
2 parameters([
3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/LCM', 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'),
9 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
10 ])
11])
12
13def devops_checkout() {
14 dir('devops') {
15 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
16 }
17}
18
garciadeblasf393d392018-05-28 12:03:00 +020019node('docker') {
garciadeblas726ccbe2018-05-25 15:23:15 +020020 checkout scm
21 devops_checkout()
22
garciadeblasf393d392018-05-28 12:03:00 +020023 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
24 ci_stage_2.ci_pipeline( 'LCM',
garciadeblas726ccbe2018-05-25 15:23:15 +020025 params.PROJECT_URL_PREFIX,
26 params.GERRIT_PROJECT,
27 params.GERRIT_BRANCH,
28 params.GERRIT_REFSPEC,
29 params.GERRIT_PATCHSET_REVISION,
30 params.TEST_INSTALL,
31 params.ARTIFACTORY_SERVER)
32}