2 Licensed under the Apache License, Version 2.0 (the "License");
3 you may not use this file except in compliance with the License.
4 You may obtain a copy of the License at
6 http://www.apache.org/licenses/LICENSE-2.0
8 Unless required by applicable law or agreed to in writing, software
9 distributed under the License is distributed on an "AS IS" BASIS,
10 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
12 See the License for the specific language governing permissions and
13 limitations under the License.
17 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
18 string(defaultValue: 'osm/NBI', description: '', name: 'GERRIT_PROJECT'),
19 string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'),
20 string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'),
21 string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'),
22 booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'),
23 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
27 def devops_checkout() {
29 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
37 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
38 ci_stage_2.ci_pipeline( 'NBI',
39 params.PROJECT_URL_PREFIX,
40 params.GERRIT_PROJECT,
42 params.GERRIT_REFSPEC,
43 params.GERRIT_PATCHSET_REVISION,
45 params.ARTIFACTORY_SERVER)