blob: 82dde6b89315d26c803c8cef5b6bc8cd19959964 [file] [log] [blame]
Mike Marchetti44985bb2017-06-23 17:12:20 -04001properties([
2 parameters([
3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/openvim', 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'),
Mike Marchetticbccaab2017-09-11 10:28:37 -04009 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
10 string(defaultValue: 'pipeline', description: '', name: 'NODE'),
Mike Marchetti44985bb2017-06-23 17:12:20 -040011 ])
12])
13
14def devops_checkout() {
15 dir('devops') {
16 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
17 }
18}
19
Mike Marchetticbccaab2017-09-11 10:28:37 -040020node("${params.NODE}") {
21
Mike Marchetti44985bb2017-06-23 17:12:20 -040022 checkout scm
23 devops_checkout()
24
25 ci_helper = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
26 ci_helper.ci_pipeline( 'openvim',
27 params.PROJECT_URL_PREFIX,
28 params.GERRIT_PROJECT,
29 params.GERRIT_BRANCH,
30 params.GERRIT_REFSPEC,
31 params.GERRIT_PATCHSET_REVISION,
Mike Marchetticbccaab2017-09-11 10:28:37 -040032 params.TEST_INSTALL,
33 params.ARTIFACTORY_SERVER)
garciadeblasc9f70582017-04-21 14:33:32 +020034}