Add Sonarcloud scans for IEC 88/2088/6
authorJianlin Lv <Jianlin.Lv@arm.com>
Tue, 3 Dec 2019 02:52:06 +0000 (10:52 +0800)
committerJianlin Lv <Jianlin.Lv@arm.com>
Thu, 12 Dec 2019 03:00:20 +0000 (11:00 +0800)
Setup gerrit-sonar job in JJB that scan golang file of IEC

Signed-off-by: Jianlin Lv <Jianlin.Lv@arm.com>
Change-Id: I7742e0146a342620dfb38e4fd20d3739a889c227

jjb/iec/iec.yaml

index 86752e1..a0e179f 100644 (file)
       - 'iec-{iecType}-deploy-{installer}-{deploy_type}-{os}-daily-{stream}'
       - 'iec-{iecType}-destroy-{installer}-{deploy_type}-{os}-daily-{stream}'
       - 'iec-{iecType}-install-{usecase}-{installer}-{deploy_type}-{os}-daily-{stream}'
+      - gerrit-sonar:
+          sonar-project-file: ""
+          build-node: centos7-builder-2c-1g
+          sonar-properties: |
+            # Required metadata
+            sonar.projectKey=iec
+            sonar.projectName=iec
+            sonar.organization=akraino-edge-stack
+
+            #Source
+            sonar.sources=.
+            sonar.exclusions=**/*_test.go,**/vendor/**
+
+            # Language
+            sonar.language=go
+
+            # Encoding
+            sonar.build.sourceEncoding=UTF-8
+
+            # Inclusions
+            sonar.inclusions=**/**.go
+
+            # Test Execution
+            sonar.tests=.
+            sonar.test.inclusions=**/*_test.go
+            sonar.test.exclusions=**/vendor/**
+
+            # Unit tests
+            sonar.go.coverage.reportPaths=iec-coverage.xml
+            sonar.go.tests.reportPaths=iec-tests.xml
+
+            # Importing External Issues
+            sonar.go.govet.reportPaths=iec-govet.xml
+            sonar.go.golint.reportPaths=iec-golint.xml
+            sonar.go.gometalinter.reportPaths=iec-gometalinter.xml
+            sonar.go.golangci-lint.reportPaths=iec-golangci-lint.xml
 
 ##############
 # PARAMETERS #
 
     publishers: *publishers
 
+
 ########################
 # trigger macros
 ########################