blob: 5d235a33a429f8449687a78130356c49d52a67ce [file] [log] [blame]
Lott, Christopher (cl778h)86cf8802019-06-05 07:29:47 -04001---
2- project:
3 name: com-log-project-view
4 project-name: com-log
5 views:
6 - project-view
7
Anil Belur439502c2023-05-07 12:39:38 +10008- _com_log_common: &com_log_common # values apply to all com/log projects
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -04009 name: com-log-common
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040010 # git repo
11 project: com/log
12 # jenkins job name prefix
13 project-name: com-log
14 # maven settings file has docker credentials
15 mvn-settings: com-log-settings
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040016 # verify/merge/package/sonar all require this
17 pre-build: !include-raw-escape: setup-com-log-build-deb.sh
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040018
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040019# compile code and run tests
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040020- project:
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040021 <<: *com_log_common
22 name: com-log-lib
23 build-node: ubuntu1804-builder-2c-2g
24 make-opts: -j 2 test
Lott, Christopher (cl778h)da93a902020-06-10 09:00:38 -040025 # do not trigger on changes in docs, releases
26 gerrit_trigger_file_paths:
Anil Belur439502c2023-05-07 12:39:38 +100027 - compare-type: REG_EXP
28 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040029 jobs:
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040030 - gerrit-autotools-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040031 stream:
32 - master:
33 branch: master
Roni Riska6c8556c2019-11-29 15:57:13 +020034
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040035# common settings for building DEB and RPM packages
Anil Belur4e0d56a2023-04-18 11:49:03 +100036- _com_log_pkg_common: &com_log_pkg_common
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040037 name: com-log-pkg-common
38 # directory with package files
39 build-dir: pkg
40 # docker image has the package_cloud gem
41 build-node: ubuntu1804-docker-4c-4g
42 jobs:
43 - gerrit-autotools-packagecloud-stage
44 stream:
45 - master:
46 branch: master
47
48# build DEB package files
Roni Riska6c8556c2019-11-29 15:57:13 +020049- project:
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040050 <<: *com_log_common
51 <<: *com_log_pkg_common
52 name: com-log-deb
Anil Belur439502c2023-05-07 12:39:38 +100053 project-name: "{name}"
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040054 configure-opts: --with-deb-dir={build-dir}
55 make-opts: -j4 deb-pkg
56
57# build RPM package files
58- project:
59 <<: *com_log_common
60 <<: *com_log_pkg_common
61 name: com-log-rpm
Anil Belur439502c2023-05-07 12:39:38 +100062 project-name: "{name}"
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040063 configure-opts: --with-rpm-dir={build-dir}
64 # parallel jobs (option -j) fail on rpm build
65 # https://bugzilla.redhat.com/show_bug.cgi?id=1398405
66 make-opts: rpm-pkg
67
68# analyze C code and test coverage
69- project:
70 <<: *com_log_common
71 name: com-log-sonarqube
72 build-node: ubuntu1804-docker-4c-4g
73 # set appropriate CXXFLAGS
74 configure-opts: --with-gcov-report-dir=gcov_report
75 # use all cores
76 make-opts: -j4 test_gcov
77 sonar-project-file: ""
78 sonar-properties: |
Anil Belur439502c2023-05-07 12:39:38 +100079 sonar.login={sonarcloud_api_token}
80 sonar.projectKey={sonarcloud_project_organization}_{project-name}
81 sonar.projectName={project-name}
82 sonar.organization={sonarcloud_project_organization}
83 sonar.build.sourceEncoding=UTF-8
84 sonar.sources=src
85 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
86 sonar.cfamily.cache.enabled=false
87 sonar.cfamily.gcov.reportsPath=gcov_report
88 sonar.cfamily.threads=4
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040089 jobs:
90 - gerrit-autotools-sonarqube
91
92- project:
93 <<: *com_log_common
94 # these templates ignore the pre-build script
Roni Riska6c8556c2019-11-29 15:57:13 +020095 name: com-log-release
Timo Tietavainen11763762020-10-28 16:35:01 +020096 # release uses sigul which requires centos
97 build-node: centos7-builder-1c-1g
Roni Riska6c8556c2019-11-29 15:57:13 +020098 jobs:
99 - gerrit-packagecloud-release-verify
100 - gerrit-packagecloud-release-merge