Lott, Christopher (cl778h) | 86cf880 | 2019-06-05 07:29:47 -0400 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: com-log-project-view |
| 4 | project-name: com-log |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 8 | - _com_log_common: &com_log_common # values apply to all com/log projects |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 9 | name: com-log-common |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 10 | # 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) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 16 | # verify/merge/package/sonar all require this |
| 17 | pre-build: !include-raw-escape: setup-com-log-build-deb.sh |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 18 | |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 19 | # compile code and run tests |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 20 | - project: |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 21 | <<: *com_log_common |
| 22 | name: com-log-lib |
| 23 | build-node: ubuntu1804-builder-2c-2g |
| 24 | make-opts: -j 2 test |
Lott, Christopher (cl778h) | da93a90 | 2020-06-10 09:00:38 -0400 | [diff] [blame] | 25 | # do not trigger on changes in docs, releases |
| 26 | gerrit_trigger_file_paths: |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 27 | - compare-type: REG_EXP |
| 28 | pattern: '^((?!docs\/|releases\/|\/COMMIT_MSG).)*$' |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 29 | jobs: |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 30 | - gerrit-autotools-verify |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 31 | stream: |
| 32 | - master: |
| 33 | branch: master |
Roni Riska | 6c8556c | 2019-11-29 15:57:13 +0200 | [diff] [blame] | 34 | |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 35 | # common settings for building DEB and RPM packages |
Anil Belur | 4e0d56a | 2023-04-18 11:49:03 +1000 | [diff] [blame] | 36 | - _com_log_pkg_common: &com_log_pkg_common |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 37 | 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 Riska | 6c8556c | 2019-11-29 15:57:13 +0200 | [diff] [blame] | 49 | - project: |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 50 | <<: *com_log_common |
| 51 | <<: *com_log_pkg_common |
| 52 | name: com-log-deb |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 53 | project-name: "{name}" |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 54 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 62 | project-name: "{name}" |
Lott, Christopher (cl778h) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 63 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 79 | 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) | 1239a6e | 2020-06-04 09:13:18 -0400 | [diff] [blame] | 89 | jobs: |
| 90 | - gerrit-autotools-sonarqube |
| 91 | |
| 92 | - project: |
| 93 | <<: *com_log_common |
| 94 | # these templates ignore the pre-build script |
Roni Riska | 6c8556c | 2019-11-29 15:57:13 +0200 | [diff] [blame] | 95 | name: com-log-release |
Timo Tietavainen | 1176376 | 2020-10-28 16:35:01 +0200 | [diff] [blame] | 96 | # release uses sigul which requires centos |
| 97 | build-node: centos7-builder-1c-1g |
Roni Riska | 6c8556c | 2019-11-29 15:57:13 +0200 | [diff] [blame] | 98 | jobs: |
| 99 | - gerrit-packagecloud-release-verify |
| 100 | - gerrit-packagecloud-release-merge |