blob: 1ceecae590ddde68ac6f29f7cb1c0f2a849512a3 [file] [log] [blame]
garciadeblase00916c2022-11-10 13:24:28 +01001/* Copyright ETSI OSM and others
2 *
3 * All Rights Reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
6 * not use this file except in compliance with the License. You may obtain
7 * a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations
15 * under the License.
16 */
17properties([
18 parameters([
19 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
garciadeblasf6ca4942022-11-10 18:24:40 +010020 string(defaultValue: 'osm/NG-SA', description: '', name: 'GERRIT_PROJECT'),
garciadeblase00916c2022-11-10 13:24:28 +010021 string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'),
22 string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'),
23 string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'),
24 booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'),
25 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
26 ])
27])
28
29def devops_checkout() {
30 dir('devops') {
31 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
32 }
33}
34
35node('stage_2') {
36 checkout scm
37 devops_checkout()
38
39 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
garciadeblasf6ca4942022-11-10 18:24:40 +010040 ci_stage_2.ci_pipeline( 'NG-SA',
garciadeblase00916c2022-11-10 13:24:28 +010041 params.PROJECT_URL_PREFIX,
42 params.GERRIT_PROJECT,
43 params.GERRIT_BRANCH,
44 params.GERRIT_REFSPEC,
45 params.GERRIT_PATCHSET_REVISION,
46 params.TEST_INSTALL,
47 params.ARTIFACTORY_SERVER)
48}