blob: 99cb40523f203402942c6dc93da18ea3fe85f1eb [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'),
Mike Marchetti1829ec32017-10-02 09:15:17 -04008 booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'),
Wesley Hirscha6d7c212017-09-08 17:37:53 -04009 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
Mike Marchettife983402017-06-23 16:59:38 -040010 ])
11])
12
13def devops_checkout() {
14 dir('devops') {
Wesley Hirsch5d1e83a2017-09-08 17:39:34 -040015 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
Mike Marchettife983402017-06-23 16:59:38 -040016 }
17}
18
Wesley Hirsch86f0b572017-09-08 17:34:11 -040019node('docker') {
Mike Marchettife983402017-06-23 16:59:38 -040020 checkout scm
21 devops_checkout()
22
23 ci_helper = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
24 ci_helper.ci_pipeline( 'UI',
25 params.PROJECT_URL_PREFIX,
26 params.GERRIT_PROJECT,
27 params.GERRIT_BRANCH,
28 params.GERRIT_REFSPEC,
29 params.GERRIT_PATCHSET_REVISION,
Mike Marchettif2dc2462017-10-02 09:38:12 -040030 params.TEST_INSTALL,
Wesley Hirscha6d7c212017-09-08 17:37:53 -040031 params.ARTIFACTORY_SERVER)
Mike Marchetti16d71de2017-10-05 11:28:43 -040032}