blob: 8cfbc44aeb0a28bf7f233b304978c9984907e163 [file] [log] [blame]
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -04001---
2- project:
3 name: ric-plt-sdl-project-view
4 project-name: ric-plt-sdl
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _sdl_common: &sdl_common # values apply to all ric-plt/sdl projects
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -04009 name: sdl-common
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040010 # git repo
11 project: ric-plt/sdl
12 # jenkins job name prefix
13 project-name: ric-plt-sdl
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040014 # maven settings file has credentials
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040015 mvn-settings: ric-plt-sdl-settings
16
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040017# compile code and run tests
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040018- project:
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040019 <<: *sdl_common
20 name: ric-plt-sdl-lib
21 pre-build: !include-raw-escape: setup-sdl-build-deb.sh
22 build-node: ubuntu1804-builder-2c-2g
23 make-opts: -j 2 test
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040024 jobs:
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040025 - gerrit-autotools-verify
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040026 stream:
27 - master:
28 branch: master
Rolf Badorek1bf1ec12019-11-29 15:36:30 +020029
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040030# common settings for building DEB and RPM packages
Anil Belur4e0d56a2023-04-18 11:49:03 +100031- _sdl_pkg_common: &sdl_pkg_common
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040032 name: ric-plt-pkg-cmn
33 pre-build: !include-raw-escape: setup-sdl-build-deb.sh
34 # directory with package files
35 build-dir: pkg
36 # docker image has the package_cloud gem
37 build-node: ubuntu1804-docker-4c-4g
38 jobs:
39 - gerrit-autotools-packagecloud-stage
40 stream:
41 - master:
42 branch: master
43
44# build DEB package files
Rolf Badorek1bf1ec12019-11-29 15:36:30 +020045- project:
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040046 <<: *sdl_common
47 <<: *sdl_pkg_common
48 name: ric-plt-sdl-deb
Anil Belur439502c2023-05-07 12:39:38 +100049 project-name: "{name}"
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040050 configure-opts: --with-deb-dir={build-dir}
51 make-opts: -j4 deb-pkg
52
53# build RPM package files
54- project:
55 <<: *sdl_common
56 <<: *sdl_pkg_common
57 name: ric-plt-sdl-rpm
Anil Belur439502c2023-05-07 12:39:38 +100058 project-name: "{name}"
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040059 configure-opts: --with-rpm-dir={build-dir}
60 # parallel jobs (option -j) fail on rpm build
61 # https://bugzilla.redhat.com/show_bug.cgi?id=1398405
62 make-opts: rpm-pkg
63
64# analyze C code and test coverage
65- project:
66 <<: *sdl_common
67 name: ric-plt-lib-sdl-sonarqube
68 pre-build: !include-raw-escape: setup-sdl-build-deb.sh
69 build-node: ubuntu1804-docker-4c-4g
70 # set appropriate CXXFLAGS
71 configure-opts: --with-gcov-report-dir=gcov_report
72 # use all cores
73 make-opts: -j4 test_gcov
74 sonar-project-file: ""
75 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100076 sonar.login={sonarcloud_api_token}
77 sonar.projectKey={sonarcloud_project_organization}_{project-name}
78 sonar.projectName={project-name}
79 sonar.organization={sonarcloud_project_organization}
80 sonar.build.sourceEncoding=UTF-8
81 sonar.sources=src
82 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
83 sonar.cfamily.cache.enabled=false
84 sonar.cfamily.gcov.reportsPath=gcov_report
85 sonar.cfamily.threads=4
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040086 jobs:
87 - gerrit-autotools-sonarqube
88
89- project:
90 <<: *sdl_common
Rolf Badorek1bf1ec12019-11-29 15:36:30 +020091 name: ric-plt-sdl-release
Timo Tietavainenb4c629f2021-06-03 17:17:25 +030092 # release uses sigul which requires centos
93 build-node: centos7-builder-1c-1g
Rolf Badorek1bf1ec12019-11-29 15:36:30 +020094 jobs:
95 - gerrit-packagecloud-release-verify
96 - gerrit-packagecloud-release-merge