blob: 118744a6b45001c1f507bcf484e81dc14c1a0161 [file] [log] [blame]
Mike Marchettice910972017-07-05 11:54:54 -04001properties([
2 parameters([
3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/osmclient', 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 Marchetti5d3d9612017-09-11 09:31:43 -04009 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
Mike Marchettice910972017-07-05 11:54:54 -040010 ])
11])
12
13def devops_checkout() {
14 dir('devops') {
15 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
Mike Marchetti4c7e2372017-05-08 16:07:20 -040016 }
Mike Marchettice910972017-07-05 11:54:54 -040017}
18
Wesley Hirschd1dc6a42017-09-08 17:34:15 -040019node('docker') {
Mike Marchettice910972017-07-05 11:54:54 -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( 'osmclient',
25 params.PROJECT_URL_PREFIX,
26 params.GERRIT_PROJECT,
27 params.GERRIT_BRANCH,
28 params.GERRIT_REFSPEC,
29 params.GERRIT_PATCHSET_REVISION,
garciadeblas922ce392019-11-19 12:12:29 +000030 false,
Mike Marchetti5d3d9612017-09-11 09:31:43 -040031 params.ARTIFACTORY_SERVER)
Mike Marchetti4c7e2372017-05-08 16:07:20 -040032}