blob: 3c4f3d79c9bb472f12f1102a086c59e6d79d0475 [file] [log] [blame]
Mike Marchetti9132e062017-06-23 13:07:51 -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'),
9 ])
10])
11
12def devops_checkout() {
13 dir('devops') {
14 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
Mike Marchetti4c7e2372017-05-08 16:07:20 -040015 }
Mike Marchetti9132e062017-06-23 13:07:51 -040016}
17
18node {
19 checkout scm
20 devops_checkout()
21
22 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
23 ci_stage_2.ci_pipeline( 'osmclient',
24 params.PROJECT_URL_PREFIX,
25 params.GERRIT_PROJECT,
26 params.GERRIT_BRANCH,
27 params.GERRIT_REFSPEC,
28 params.GERRIT_PATCHSET_REVISION,
29 params.TEST_INSTALL)
Mike Marchetti4c7e2372017-05-08 16:07:20 -040030}