blob: 50fec4cfd5110c8961fdd54393e95efbcf2c47a5 [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
16- xapp_frame_cpp_common: &xapp_frame_cpp_common
17 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
anhnghcl75639ea2022-06-16 07:11:14 +000035 - ../shell/install-deb-cpprest.sh
36 - ../shell/install-git-pistache.sh
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040037 # skip install in cmake-build.sh
38 install: false
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040039
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040040# verify every commit
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040041- project:
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040042 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040043 name: xapp-frame-cpp-verify
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040044 cmake-opts: -DDEV_PKG=1
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040045 make-opts: package test ARGS=-V
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040046 jobs:
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040047 - gerrit-cmake-verify
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040048 stream:
49 - master:
50 branch: master
51
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040052# development library - package and publish
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040053- project:
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040054 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040055 name: ric-plt-xapp-frame-cpp-dev
56 project-name: '{name}'
57 cmake-opts: -DDEV_PKG=1
58 make-opts: package
59 install-prefix: /usr/local
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040060 jobs:
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040061 - gerrit-cmake-packagecloud-stage
62 stream:
63 - master:
64 branch: master
65
66# runtime library - package and publish
67- project:
68 <<: *xapp_frame_cpp_common
69 name: ric-plt-xapp-frame-cpp-rt
70 project-name: '{name}'
71 cmake-opts: -DDEV_PKG=0
72 make-opts: package
73 install-prefix: /usr/local
74 jobs:
75 - gerrit-cmake-packagecloud-stage
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040076 stream:
77 - master:
78 branch: master
79
E. Scott Danielsb9e938c2020-06-12 15:37:19 -040080# promote deb/rpm from staging to release at PackageCloud.io
81- project:
82 <<: *xapp_frame_cpp_common
83 name: ric-plt-xapp-frame-cpp-release
84 # release uses sigul which requires centos
85 build-node: centos7-builder-1c-1g
86 jobs:
87 - gerrit-packagecloud-release-verify
88 - gerrit-packagecloud-release-merge
89
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040090# analyze C code and test coverage
91- project:
92 name: xapp-frame-cpp-sonarqube
93 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040094 make-opts: test ARGS=-V
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040095 sonar-project-file: ""
96 sonar-properties: |
97 sonar.login={sonarcloud_api_token}
98 sonar.projectKey={sonarcloud_project_organization}_{project-name}
99 sonar.projectName={project-name}
100 sonar.organization={sonarcloud_project_organization}
101 sonar.build.sourceEncoding=UTF-8
102 sonar.sources=src
103 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
104 sonar.cfamily.gcov.reportsPath=test
105 jobs:
106 - gerrit-cmake-sonarqube