From 1875ce6b9d1164796988ef8fb67fb875613fc21e Mon Sep 17 00:00:00 2001 From: Mahesh Jethanandani Date: Tue, 18 Jan 2022 16:58:11 -0800 Subject: [PATCH] Adding smo-ves Sonarqube project Issue-ID: SMO-45 Signed-off-by: Mahesh Jethanandani Change-Id: If126f4d79f8dd26336f1181dfce91197ba1ccc28 --- jjb/smo-ves/smo-ves.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/jjb/smo-ves/smo-ves.yaml b/jjb/smo-ves/smo-ves.yaml index 5bb5c6a7..de70a93e 100644 --- a/jjb/smo-ves/smo-ves.yaml +++ b/jjb/smo-ves/smo-ves.yaml @@ -46,3 +46,23 @@ build-node: centos7-docker-2c-8g jobs: - '{project-name}-gerrit-release-jobs' + +- project: + <<: *ves_docker_common + name: smo-ves-sonarqube + python-version: python3 + # the install script assumes an ubuntu image + build-node: ubuntu1804-builder-2c-2g + # pre-build-script: !include-raw-escape: + # - ../shell/install-deb-rmr.sh + 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=a1 + sonar.python.coverage.reportPaths=coverage.xml + jobs: + - gerrit-tox-sonarqube -- 2.16.6