Lott, Christopher (cl778h) | a1afde2 | 2019-11-01 09:14:08 -0400 | [diff] [blame] | 1 | --- |
| 2 | - project: |
| 3 | name: ric-plt-sdl-project-view |
| 4 | project-name: ric-plt-sdl |
| 5 | views: |
| 6 | - project-view |
| 7 | |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 8 | - _sdl_common: &sdl_common # values apply to all ric-plt/sdl projects |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 9 | name: sdl-common |
Lott, Christopher (cl778h) | a1afde2 | 2019-11-01 09:14:08 -0400 | [diff] [blame] | 10 | # git repo |
| 11 | project: ric-plt/sdl |
| 12 | # jenkins job name prefix |
| 13 | project-name: ric-plt-sdl |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 14 | # maven settings file has credentials |
Lott, Christopher (cl778h) | a1afde2 | 2019-11-01 09:14:08 -0400 | [diff] [blame] | 15 | mvn-settings: ric-plt-sdl-settings |
| 16 | |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 17 | # compile code and run tests |
Lott, Christopher (cl778h) | a1afde2 | 2019-11-01 09:14:08 -0400 | [diff] [blame] | 18 | - project: |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 19 | <<: *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) | a1afde2 | 2019-11-01 09:14:08 -0400 | [diff] [blame] | 24 | jobs: |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 25 | - gerrit-autotools-verify |
Lott, Christopher (cl778h) | a1afde2 | 2019-11-01 09:14:08 -0400 | [diff] [blame] | 26 | stream: |
| 27 | - master: |
| 28 | branch: master |
Rolf Badorek | 1bf1ec1 | 2019-11-29 15:36:30 +0200 | [diff] [blame] | 29 | |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 30 | # common settings for building DEB and RPM packages |
Anil Belur | 4e0d56a | 2023-04-18 11:49:03 +1000 | [diff] [blame] | 31 | - _sdl_pkg_common: &sdl_pkg_common |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 32 | 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 Badorek | 1bf1ec1 | 2019-11-29 15:36:30 +0200 | [diff] [blame] | 45 | - project: |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 46 | <<: *sdl_common |
| 47 | <<: *sdl_pkg_common |
| 48 | name: ric-plt-sdl-deb |
Anil Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 49 | project-name: "{name}" |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 50 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 58 | project-name: "{name}" |
Lott, Christopher (cl778h) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 59 | 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 Belur | 439502c | 2023-05-07 12:39:38 +1000 | [diff] [blame] | 76 | 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) | 4545ebe | 2020-05-14 08:32:13 -0400 | [diff] [blame] | 86 | jobs: |
| 87 | - gerrit-autotools-sonarqube |
| 88 | |
| 89 | - project: |
| 90 | <<: *sdl_common |
Rolf Badorek | 1bf1ec1 | 2019-11-29 15:36:30 +0200 | [diff] [blame] | 91 | name: ric-plt-sdl-release |
Timo Tietavainen | b4c629f | 2021-06-03 17:17:25 +0300 | [diff] [blame] | 92 | # release uses sigul which requires centos |
| 93 | build-node: centos7-builder-1c-1g |
Rolf Badorek | 1bf1ec1 | 2019-11-29 15:36:30 +0200 | [diff] [blame] | 94 | jobs: |
| 95 | - gerrit-packagecloud-release-verify |
| 96 | - gerrit-packagecloud-release-merge |