From: Lott, Christopher (cl778h) Date: Mon, 27 Apr 2020 19:15:37 +0000 (-0400) Subject: Change c/make opts for sonarqube invocation of RMR X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=ci-management.git;a=commitdiff_plain;h=860caa77af952200436eddd5d979d16366d12fae Change c/make opts for sonarqube invocation of RMR Add dev package in cmake, use "package test" in make. Don't try to limit with "-R unit". Drop -c- portion of job names bos the python bindings have moved to a different repo Use 2 threads to analyze C files. Signed-off-by: Lott, Christopher (cl778h) Change-Id: I497dbb08c8aac9d721af53e42b177644913fa7da --- diff --git a/jjb/ric-plt-lib-rmr/ric-plt-lib-rmr.yaml b/jjb/ric-plt-lib-rmr/ric-plt-lib-rmr.yaml index 1fd4ebd0..3a3687a8 100644 --- a/jjb/ric-plt-lib-rmr/ric-plt-lib-rmr.yaml +++ b/jjb/ric-plt-lib-rmr/ric-plt-lib-rmr.yaml @@ -20,11 +20,8 @@ project: ric-plt/lib/rmr # maven settings file has credentials to archive artifacts mvn-settings: ric-plt-lib-rmr-settings - -- rmr_c_common: &rmr_c_common - name: rmr-c-common # jenkins job name prefix - project-name: ric-plt-lib-rmr-c + project-name: ric-plt-lib-rmr # test scripts depend on this name build-dir: $WORKSPACE/.build # Use ubuntu base for cmake v3 @@ -41,9 +38,7 @@ # verify every commit - project: <<: *rmr_common - <<: *rmr_c_common - name: ric-plt-lib-rmr-c-verify - project-name: ric-plt-lib-rmr-c + name: ric-plt-lib-rmr-verify cmake-opts: -DDEV_PKG=1 -DBUILD_DOC=1 # skip install in cmake-build.sh install: false @@ -57,9 +52,8 @@ # development library - package and publish - project: <<: *rmr_common - <<: *rmr_c_common - name: ric-plt-lib-rmr-c-dev - project-name: ric-plt-lib-rmr-c-dev + name: ric-plt-lib-rmr-dev + project-name: ric-plt-lib-rmr-dev cmake-opts: -DDEV_PKG=1 make-opts: package ARGS=-V install-prefix: /usr/local @@ -72,9 +66,8 @@ # runtime library - package and publish - project: <<: *rmr_common - <<: *rmr_c_common - name: ric-plt-lib-rmr-c-rt - project-name: ric-plt-lib-rmr-c-rt + name: ric-plt-lib-rmr-rt + project-name: ric-plt-lib-rmr-rt cmake-opts: -DDEV_PKG=0 make-opts: package ARGS=-V install-prefix: /usr/local @@ -87,8 +80,7 @@ # promote deb/rpm from staging to release at PackageCloud.io - project: <<: *rmr_common - <<: *rmr_c_common - name: ric-plt-lib-rmr-c-release + name: ric-plt-lib-rmr-release # release uses sigul which requires centos build-node: centos7-builder-1c-1g jobs: @@ -97,10 +89,10 @@ # analyze C code and test coverage - project: - name: ric-plt-lib-rmr-c-sonarqube + name: ric-plt-lib-rmr-sonarqube <<: *rmr_common - <<: *rmr_c_common - make-opts: test ARGS="-R unit" + cmake-opts: -DDEV_PKG=1 + make-opts: package test ARGS=-V sonar-project-file: "" sonar-properties: | sonar.login={sonarcloud_api_token} @@ -111,5 +103,6 @@ sonar.sources=src/rmr sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output sonar.cfamily.gcov.reportsPath=test + sonar.cfamily.threads=2 jobs: - gerrit-cmake-sonarqube