Switch xapp-frame-py to gerrit-tox-sonarqube template 83/2683/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Thu, 5 Mar 2020 10:59:00 +0000 (05:59 -0500)
committerLott, Christopher (cl778h) <cl778h@att.com>
Thu, 5 Mar 2020 10:59:00 +0000 (05:59 -0500)
Stop using the deprecated gerrit-tox-sonar template

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Ie32c2ba78b6525a8c2f26a2ad38a27d7ff459df7

jjb/ric-plt-xapp-frame-py/ric-plt-xapp-frame-py.yaml

index e48fbf1..e7061dc 100644 (file)
@@ -27,7 +27,6 @@
     pre-build-script: !include-raw-escape:
       - ../shell/install-deb-nng-rmr.sh
 
-# verify distribution and publish to test.pypi.org
 - project:
     name: ric-plt-xapp-frame-py-pypi
     <<: *py_common
@@ -37,7 +36,6 @@
       - master:
           branch: master
 
-# promote distribution from test.pypi.org to pypi.org
 - project:
     name: ric-plt-xapp-frame-py-release
     <<: *py_common
     jobs:
       - '{project-name}-gerrit-pypi-release-jobs'
 
-# analyze unit test coverage
 - project:
-    name: ric-plt-xapp-frame-py-sonar
+    name: ric-plt-xapp-frame-py-sonarqube
     <<: *py_common
-    sonarcloud: true
-    sonarcloud-api-token: '{sonarcloud_api_token}'
-    sonarcloud-project-key: '{sonarcloud_project_organization}_{project-name}'
-    sonarcloud-project-organization: '{sonarcloud_project_organization}'
+    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=ricxappframe
+        sonar.exclusions=setup.py,tests/*.py
+        sonar.python.coverage.reportPaths=coverage.xml
     jobs:
-      - gerrit-tox-sonar
+      - gerrit-tox-sonarqube