blob: 13481a29b4f24bf808143790b2567b2ef8c86855 [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
8- project:
9 name: ric-plt-sdl-info
10 project: ric-plt/sdl
11 project-name: ric-plt-sdl
12 build-node: centos7-builder-1c-1g
13 jobs:
14 - gerrit-info-yaml-verify
15
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040016- sdl_common: &sdl_common
17 # values apply to all ric-plt/sdl projects
18 name: sdl-common
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040019 # git repo
20 project: ric-plt/sdl
21 # jenkins job name prefix
22 project-name: ric-plt-sdl
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040023 # maven settings file has credentials
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040024 mvn-settings: ric-plt-sdl-settings
25
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040026# compile code and run tests
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040027- project:
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040028 <<: *sdl_common
29 name: ric-plt-sdl-lib
30 pre-build: !include-raw-escape: setup-sdl-build-deb.sh
31 build-node: ubuntu1804-builder-2c-2g
32 make-opts: -j 2 test
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040033 jobs:
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040034 - gerrit-autotools-verify
Lott, Christopher (cl778h)a1afde22019-11-01 09:14:08 -040035 stream:
36 - master:
37 branch: master
Rolf Badorek1bf1ec12019-11-29 15:36:30 +020038
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040039# common settings for building DEB and RPM packages
40- sdl_pkg_common: &sdl_pkg_common
41 name: ric-plt-pkg-cmn
42 pre-build: !include-raw-escape: setup-sdl-build-deb.sh
43 # directory with package files
44 build-dir: pkg
45 # docker image has the package_cloud gem
46 build-node: ubuntu1804-docker-4c-4g
47 jobs:
48 - gerrit-autotools-packagecloud-stage
49 stream:
50 - master:
51 branch: master
52
53# build DEB package files
Rolf Badorek1bf1ec12019-11-29 15:36:30 +020054- project:
Lott, Christopher (cl778h)4545ebe2020-05-14 08:32:13 -040055 <<: *sdl_common
56 <<: *sdl_pkg_common
57 name: ric-plt-sdl-deb
58 project-name: '{name}'
59 configure-opts: --with-deb-dir={build-dir}
60 make-opts: -j4 deb-pkg
61
62# build RPM package files
63- project:
64 <<: *sdl_common
65 <<: *sdl_pkg_common
66 name: ric-plt-sdl-rpm
67 project-name: '{name}'
68 configure-opts: --with-rpm-dir={build-dir}
69 # parallel jobs (option -j) fail on rpm build
70 # https://bugzilla.redhat.com/show_bug.cgi?id=1398405
71 make-opts: rpm-pkg
72
73# analyze C code and test coverage
74- project:
75 <<: *sdl_common
76 name: ric-plt-lib-sdl-sonarqube
77 pre-build: !include-raw-escape: setup-sdl-build-deb.sh
78 build-node: ubuntu1804-docker-4c-4g
79 # set appropriate CXXFLAGS
80 configure-opts: --with-gcov-report-dir=gcov_report
81 # use all cores
82 make-opts: -j4 test_gcov
83 sonar-project-file: ""
84 sonar-properties: |
85 sonar.login={sonarcloud_api_token}
86 sonar.projectKey={sonarcloud_project_organization}_{project-name}
87 sonar.projectName={project-name}
88 sonar.organization={sonarcloud_project_organization}
89 sonar.build.sourceEncoding=UTF-8
90 sonar.sources=src
91 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
92 sonar.cfamily.cache.enabled=false
93 sonar.cfamily.gcov.reportsPath=gcov_report
94 sonar.cfamily.threads=4
95 jobs:
96 - gerrit-autotools-sonarqube
97
98- project:
99 <<: *sdl_common
Rolf Badorek1bf1ec12019-11-29 15:36:30 +0200100 name: ric-plt-sdl-release
Rolf Badorek1bf1ec12019-11-29 15:36:30 +0200101 jobs:
102 - gerrit-packagecloud-release-verify
103 - gerrit-packagecloud-release-merge