blob: a4a3fa3e0b092ca3cd56dee0ba8b6ed052ec4994 [file] [log] [blame]
Mike Marchettife983402017-06-23 16:59:38 -04001properties([
2 parameters([
3 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'osm/UI', 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: true, description: '', name: 'BUILD_SYSTEM'),
9 ])
10])
11
12def devops_checkout() {
13 dir('devops') {
Wesley Hirsch5d1e83a2017-09-08 17:39:34 -040014 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
Mike Marchettife983402017-06-23 16:59:38 -040015 }
16}
17
18node {
19 checkout scm
20 devops_checkout()
21
22 ci_helper = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
23 ci_helper.ci_pipeline( 'UI',
24 params.PROJECT_URL_PREFIX,
25 params.GERRIT_PROJECT,
26 params.GERRIT_BRANCH,
27 params.GERRIT_REFSPEC,
28 params.GERRIT_PATCHSET_REVISION,
29 params.BUILD_SYSTEM)
Wesley Hirsch418d0c32017-03-21 15:09:59 -040030}