blob: ca0f53968ad8641fc3e7a7998446cbe210be568e [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
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040035 # skip install in cmake-build.sh
36 install: false
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040037
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040038# verify every commit
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040039- project:
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040040 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040041 name: xapp-frame-cpp-verify
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040042 cmake-opts: -DDEV_PKG=1
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040043 make-opts: package test ARGS=-V
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040044 jobs:
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040045 - gerrit-cmake-verify
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040046 stream:
47 - master:
48 branch: master
49
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040050# development library - package and publish
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040051- project:
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040052 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040053 name: ric-plt-xapp-frame-cpp-dev
54 project-name: '{name}'
55 cmake-opts: -DDEV_PKG=1
56 make-opts: package
57 install-prefix: /usr/local
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040058 jobs:
Lott, Christopher (cl778h)f145eca2020-04-07 12:36:56 -040059 - gerrit-cmake-packagecloud-stage
60 stream:
61 - master:
62 branch: master
63
64# runtime library - package and publish
65- project:
66 <<: *xapp_frame_cpp_common
67 name: ric-plt-xapp-frame-cpp-rt
68 project-name: '{name}'
69 cmake-opts: -DDEV_PKG=0
70 make-opts: package
71 install-prefix: /usr/local
72 jobs:
73 - gerrit-cmake-packagecloud-stage
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040074 stream:
75 - master:
76 branch: master
77
E. Scott Danielsb9e938c2020-06-12 15:37:19 -040078# promote deb/rpm from staging to release at PackageCloud.io
79- project:
80 <<: *xapp_frame_cpp_common
81 name: ric-plt-xapp-frame-cpp-release
82 # release uses sigul which requires centos
83 build-node: centos7-builder-1c-1g
84 jobs:
85 - gerrit-packagecloud-release-verify
86 - gerrit-packagecloud-release-merge
87
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040088# analyze C code and test coverage
89- project:
90 name: xapp-frame-cpp-sonarqube
91 <<: *xapp_frame_cpp_common
Lott, Christopher (cl778h)fe4cf192020-03-26 21:26:14 -040092 make-opts: test ARGS=-V
Lott, Christopher (cl778h)95cc0892020-03-25 09:20:01 -040093 sonar-project-file: ""
94 sonar-properties: |
95 sonar.login={sonarcloud_api_token}
96 sonar.projectKey={sonarcloud_project_organization}_{project-name}
97 sonar.projectName={project-name}
98 sonar.organization={sonarcloud_project_organization}
99 sonar.build.sourceEncoding=UTF-8
100 sonar.sources=src
101 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
102 sonar.cfamily.gcov.reportsPath=test
103 jobs:
104 - gerrit-cmake-sonarqube