blob: 41e9d437f89ac192773d8998fd658cf62d12155b [file] [log] [blame]
LF Jenkins CIfa6d9e72020-02-26 17:20:43 +00001---
2- project:
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -04003 name: ric-plt-xapp-frame-cpp-project-view
4 project-name: ric-plt-xapp-frame-cpp
5 views:
6 - project-view
7
8- project:
LF Jenkins CIfa6d9e72020-02-26 17:20:43 +00009 name: ric-plt-xapp-frame-cpp-info
10 project: ric-plt/xapp-frame-cpp
11 project-name: ric-plt-xapp-frame-cpp
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040015
Anil Belur4e0d56a2023-04-18 11:49:03 +100016- _xapp_frame_cpp_common: &xapp_frame_cpp_common
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040017 name: xapp-frame-cpp-common
18 # git repo
19 project: ric-plt/xapp-frame-cpp
20 # jenkins job name prefix
21 project-name: ric-plt-xapp-frame-cpp
22 # maven settings file has credentials to archive artifacts
23 mvn-settings: ric-plt-xapp-frame-cpp-settings
24 # test scripts depend on this name
25 build-dir: $WORKSPACE/build
Lott, Christopher (cl778h)42453bd2020-03-25 16:33:06 -040026 # Use ubuntu base for cmake v3
27 # Use docker variant for packagecloud ruby gem
28 build-node: ubuntu1804-docker-4c-4g
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040029 # pre-build scripts for CMake templates:
Lott, Christopher (cl778h)69499692020-03-27 13:55:06 -040030 # install alien package to build RPMS
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040031 # install RMR per version file in repo
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040032 pre-build: !include-raw-escape:
Lott, Christopher (cl778h)69499692020-03-27 13:55:06 -040033 - ../shell/install-deb-alien.sh
Lott, Christopher (cl778h)18c71592020-04-27 17:46:12 -040034 - ../shell/install-deb-rmr.sh
sandeepindiaf606d952022-12-05 23:48:36 +053035 - ../shell/install-git-RESTful.sh
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040036 # skip install in cmake-build.sh
37 install: false
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040038
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040039# verify every commit
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040040- project:
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040041 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040042 name: xapp-frame-cpp-verify
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040043 cmake-opts: -DDEV_PKG=1
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040044 make-opts: package test ARGS=-V
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040045 jobs:
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040046 - gerrit-cmake-verify
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040047 stream:
48 - master:
49 branch: master
50
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040051# development library - package and publish
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040052- project:
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040053 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040054 name: ric-plt-xapp-frame-cpp-dev
55 project-name: '{name}'
56 cmake-opts: -DDEV_PKG=1
57 make-opts: package
58 install-prefix: /usr/local
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040059 jobs:
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040060 - gerrit-cmake-packagecloud-stage
61 stream:
62 - master:
63 branch: master
64
65# runtime library - package and publish
66- project:
67 <<: *xapp_frame_cpp_common
68 name: ric-plt-xapp-frame-cpp-rt
69 project-name: '{name}'
70 cmake-opts: -DDEV_PKG=0
71 make-opts: package
72 install-prefix: /usr/local
73 jobs:
74 - gerrit-cmake-packagecloud-stage
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040075 stream:
76 - master:
77 branch: master
78
E. Scott Danielsb9e938c2020-06-12 15:37:19 -040079# promote deb/rpm from staging to release at PackageCloud.io
80- project:
81 <<: *xapp_frame_cpp_common
82 name: ric-plt-xapp-frame-cpp-release
83 # release uses sigul which requires centos
84 build-node: centos7-builder-1c-1g
85 jobs:
86 - gerrit-packagecloud-release-verify
87 - gerrit-packagecloud-release-merge
88
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040089# analyze C code and test coverage
90- project:
91 name: xapp-frame-cpp-sonarqube
92 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040093 make-opts: test ARGS=-V
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040094 sonar-project-file: ""
95 sonar-properties: |
96 sonar.login={sonarcloud_api_token}
97 sonar.projectKey={sonarcloud_project_organization}_{project-name}
98 sonar.projectName={project-name}
99 sonar.organization={sonarcloud_project_organization}
100 sonar.build.sourceEncoding=UTF-8
101 sonar.sources=src
102 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
103 sonar.cfamily.gcov.reportsPath=test
104 jobs:
105 - gerrit-cmake-sonarqube