blob: 3e3af2e88da7b076d1a77b9463fcf4d1b3a0e44b [file] [log] [blame]
garciadeblas4f037ac2017-09-06 12:51:25 +02001properties([
2 parameters([
3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/IM', 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'),
garciadeblas1a72c372017-09-11 16:56:58 +02009 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
garciadeblas4f037ac2017-09-06 12:51:25 +020010 ])
11])
12
13def devops_checkout() {
14 dir('devops') {
15 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
16 }
17}
18
19node {
20 checkout scm
21 devops_checkout()
22
23 ci_helper = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
24 ci_helper.ci_pipeline( 'IM',
25 params.PROJECT_URL_PREFIX,
26 params.GERRIT_PROJECT,
27 params.GERRIT_BRANCH,
28 params.GERRIT_REFSPEC,
29 params.GERRIT_PATCHSET_REVISION,
garciadeblas1a72c372017-09-11 16:56:58 +020030 params.TEST_INSTALL,
31 params.ARTIFACTORY_SERVER)
garciadeblas4f037ac2017-09-06 12:51:25 +020032}