blob: 4e7404a3389f28d6352905a5957652ff97e67510 [file] [log] [blame]
Mark Beierlb475e062022-07-14 09:39:41 -04001/* 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 */
17
Mike Marchettice910972017-07-05 11:54:54 -040018properties([
19 parameters([
20 string(defaultValue: env.BRANCH_NAME, description: '', name: 'GERRIT_BRANCH'),
21 string(defaultValue: 'osm/osmclient', description: '', name: 'GERRIT_PROJECT'),
22 string(defaultValue: env.GERRIT_REFSPEC, description: '', name: 'GERRIT_REFSPEC'),
23 string(defaultValue: env.GERRIT_PATCHSET_REVISION, description: '', name: 'GERRIT_PATCHSET_REVISION'),
24 string(defaultValue: 'https://osm.etsi.org/gerrit', description: '', name: 'PROJECT_URL_PREFIX'),
25 booleanParam(defaultValue: false, description: '', name: 'TEST_INSTALL'),
Mike Marchetti5d3d9612017-09-11 09:31:43 -040026 string(defaultValue: 'artifactory-osm', description: '', name: 'ARTIFACTORY_SERVER'),
Mike Marchettice910972017-07-05 11:54:54 -040027 ])
28])
29
30def devops_checkout() {
31 dir('devops') {
32 git url: "${PROJECT_URL_PREFIX}/osm/devops", branch: params.GERRIT_BRANCH
Mike Marchetti4c7e2372017-05-08 16:07:20 -040033 }
Mike Marchettice910972017-07-05 11:54:54 -040034}
35
Mark Beierlb475e062022-07-14 09:39:41 -040036node('stage_2') {
Mike Marchettice910972017-07-05 11:54:54 -040037 checkout scm
38 devops_checkout()
39
40 ci_stage_2 = load "devops/jenkins/ci-pipelines/ci_stage_2.groovy"
41 ci_stage_2.ci_pipeline( 'osmclient',
42 params.PROJECT_URL_PREFIX,
43 params.GERRIT_PROJECT,
44 params.GERRIT_BRANCH,
45 params.GERRIT_REFSPEC,
46 params.GERRIT_PATCHSET_REVISION,
Mike Marchetti5d3d9612017-09-11 09:31:43 -040047 params.TEST_INSTALL,
48 params.ARTIFACTORY_SERVER)
Mike Marchetti4c7e2372017-05-08 16:07:20 -040049}