blob: 266ebaaea4c02896dbd9ab1ed1067fa28ac55ee2 [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
Andrew Grimbergcd9f20f2019-06-11 13:14:22 -07008- project:
9 name: com-log-info
10 project: com/log
11 project-name: com-log
12 build-node: centos7-builder-1c-1g
Andrew Grimbergcd9f20f2019-06-11 13:14:22 -070013 jobs:
14 - gerrit-info-yaml-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040015
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040016- com_log_common: &com_log_common
17 # values apply to all com/log projects
18 name: com-log-common
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040019 # git repo
20 project: com/log
21 # jenkins job name prefix
22 project-name: com-log
23 # maven settings file has docker credentials
24 mvn-settings: com-log-settings
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040025 # verify/merge/package/sonar all require this
26 pre-build: !include-raw-escape: setup-com-log-build-deb.sh
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040027
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040028# compile code and run tests
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040029- project:
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040030 <<: *com_log_common
31 name: com-log-lib
32 build-node: ubuntu1804-builder-2c-2g
33 make-opts: -j 2 test
Lott, Christopher (cl778h)da93a902020-06-10 09:00:38 -040034 # do not trigger on changes in docs, releases
35 gerrit_trigger_file_paths:
36 - compare-type: REG_EXP
37 pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040038 jobs:
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040039 - gerrit-autotools-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040040 stream:
41 - master:
42 branch: master
Roni Riska6c8556c2019-11-29 15:57:13 +020043
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040044# common settings for building DEB and RPM packages
45- com_log_pkg_common: &com_log_pkg_common
46 name: com-log-pkg-common
47 # directory with package files
48 build-dir: pkg
49 # docker image has the package_cloud gem
50 build-node: ubuntu1804-docker-4c-4g
51 jobs:
52 - gerrit-autotools-packagecloud-stage
53 stream:
54 - master:
55 branch: master
56
57# build DEB package files
Roni Riska6c8556c2019-11-29 15:57:13 +020058- project:
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -040059 <<: *com_log_common
60 <<: *com_log_pkg_common
61 name: com-log-deb
62 project-name: '{name}'
63 configure-opts: --with-deb-dir={build-dir}
64 make-opts: -j4 deb-pkg
65
66# build RPM package files
67- project:
68 <<: *com_log_common
69 <<: *com_log_pkg_common
70 name: com-log-rpm
71 project-name: '{name}'
72 configure-opts: --with-rpm-dir={build-dir}
73 # parallel jobs (option -j) fail on rpm build
74 # https://bugzilla.redhat.com/show_bug.cgi?id=1398405
75 make-opts: rpm-pkg
76
77# analyze C code and test coverage
78- project:
79 <<: *com_log_common
80 name: com-log-sonarqube
81 build-node: ubuntu1804-docker-4c-4g
82 # set appropriate CXXFLAGS
83 configure-opts: --with-gcov-report-dir=gcov_report
84 # use all cores
85 make-opts: -j4 test_gcov
86 sonar-project-file: ""
87 sonar-properties: |
88 sonar.login={sonarcloud_api_token}
89 sonar.projectKey={sonarcloud_project_organization}_{project-name}
90 sonar.projectName={project-name}
91 sonar.organization={sonarcloud_project_organization}
92 sonar.build.sourceEncoding=UTF-8
93 sonar.sources=src
94 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
95 sonar.cfamily.cache.enabled=false
96 sonar.cfamily.gcov.reportsPath=gcov_report
97 sonar.cfamily.threads=4
98 jobs:
99 - gerrit-autotools-sonarqube
100
101- project:
102 <<: *com_log_common
103 # these templates ignore the pre-build script
Roni Riska6c8556c2019-11-29 15:57:13 +0200104 name: com-log-release
Timo Tietavainen11763762020-10-28 16:35:01 +0200105 # release uses sigul which requires centos
106 build-node: centos7-builder-1c-1g
Roni Riska6c8556c2019-11-29 15:57:13 +0200107 jobs:
108 - gerrit-packagecloud-release-verify
109 - gerrit-packagecloud-release-merge
Lott, Christopher (cl778h)1239a6e2020-06-04 09:13:18 -0400110