blob: 67137ecbc024b079607229f7898cd98f8f95b55d [file] [log] [blame]
Mike Marchetti1232b662017-06-23 16:52:38 -04001properties([
2 parameters([
3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/SO', 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 Hirschd96a8262017-09-08 17:37:40 -04009 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
Mike Marchetti1232b662017-06-23 16:52:38 -040010 ])
11])
12
13def devops_checkout() {
14 dir('devops') {
15 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
16 }
17}
18
Wesley Hirschf37a9292017-09-08 17:34:07 -040019node('docker') {
Mike Marchetti1232b662017-06-23 16:52:38 -040020 checkout scm
21 devops_checkout()
22
23 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
24 ci_stage_2.ci_pipeline( 'SO',
25 params.PROJECT_URL_PREFIX,
26 params.GERRIT_PROJECT,
27 params.GERRIT_BRANCH,
28 params.GERRIT_REFSPEC,
29 params.GERRIT_PATCHSET_REVISION,
Wesley Hirschd96a8262017-09-08 17:37:40 -040030 params.TEST_INSTALL,
31 params.ARTIFACTORY_SERVER)
Wesley Hirschadbe65e2017-03-17 15:50:56 -040032}