Adding smo-ves Sonarqube project
Issue-ID: SMO-45
Signed-off-by: Mahesh Jethanandani <mjethanandani@gmail.com>
Change-Id: If126f4d79f8dd26336f1181dfce91197ba1ccc28
diff --git a/jjb/smo-ves/smo-ves.yaml b/jjb/smo-ves/smo-ves.yaml
index 5bb5c6a..de70a93 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