From: Jessica Wagantall Date: Wed, 19 Aug 2020 19:13:57 +0000 (+0000) Subject: Merge "Add sonar job to the MC xAPP jjb template" X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=77083275652d6fabad975b7c56bddd0d90499800;hp=ddb521695a3005812c07a7c92813d5158a8be538;p=ci-management.git Merge "Add sonar job to the MC xAPP jjb template" --- diff --git a/jjb/ric-app-mc/ric-app-mc.yaml b/jjb/ric-app-mc/ric-app-mc.yaml index 22438670..523943fd 100644 --- a/jjb/ric-app-mc/ric-app-mc.yaml +++ b/jjb/ric-app-mc/ric-app-mc.yaml @@ -20,6 +20,13 @@ project: ric-app/mc # maven settings file has docker credentials mvn-settings: ric-app-mc-settings + # jenkins job name prefix + project-name: ric-app-mc + # test scripts depend on this name + build-dir: $WORKSPACE/.build + # Use ubuntu base for cmake v3 + # Use docker variant for packagecloud ruby gem + build-node: ubuntu1804-docker-4c-4g - project: <<: *mc_common @@ -74,3 +81,24 @@ build-node: centos7-docker-2c-8g jobs: - '{project-name}-gerrit-release-jobs' + +# drive unit tests from root CMake file to gen/analyse coverage data +- project: + <<: *mc_common + name: ric-app-mc-sonarqube + project-name: ric-app-mc + cmake-opts: "" + make-opts: test ARGS=-V + sonar-project-file: "" + sonar-properties: | + sonar.login={sonarcloud_api_token} + sonar.projectKey={sonarcloud_project_organization}_{project-name} + sonar.projectName={project-name} + sonar.organization={sonarcloud_project_organization} + sonar.build.sourceEncoding=UTF-8 + sonar.sources=sidecars/listener + sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output + sonar.cfamily.gcov.reportsPath=sidecars/listener + sonar.cfamily.threads=2 + jobs: + - gerrit-cmake-sonarqube