blob: 260f644e5e7d0634116d5f74670387e99b86b371 [file] [log] [blame]
Mike Marchetti2cc51442017-06-23 10:24:22 -04001properties([
2 parameters([
Mike Marchetti49780342017-07-05 11:29:07 -04003 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
4 string(defaultValue: 'test', description: '', name: 'GERRIT_PROJECT'),
Mike Marchetti2cc51442017-06-23 10:24:22 -04005 string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'),
6 string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'),
Mike Marchetti49780342017-07-05 11:29:07 -04007 string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'),
8 booleanParam(defaultValue: true, description: '', name: 'BUILD_SYSTEM'),
Mike Marchetti2cc51442017-06-23 10:24:22 -04009 ])
10])
11
Mike Marchetti52de9722017-06-22 15:18:23 -040012def devops_checkout() {
13 dir('devops') {
Mike Marchetti49780342017-07-05 11:29:07 -040014 git url: "${PROJECT_URL_PREFIX}/osm/devops"
Mike Marchetti52de9722017-06-22 15:18:23 -040015 }
16}
17
18node {
Mike Marchetti49780342017-07-05 11:29:07 -040019 checkout scm
20 devops_checkout()
Mike Marchetti52de9722017-06-22 15:18:23 -040021
Mike Marchetti49780342017-07-05 11:29:07 -040022 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
23 ci_stage_2.ci_pipeline( 'test',
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)
Mike Marchetti30b8eb72017-06-22 09:15:03 -040030}