Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Fix sonar jdk #297

Merged
merged 3 commits into from
Feb 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 29 additions & 29 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ orbs:
executors:
vm:
machine:
image: ubuntu-1604:201903-01
image: ubuntu-2004:202010-01
resource_class: large
jobs:
e2e-orb:
Expand Down Expand Up @@ -278,34 +278,34 @@ orbs:
paths:
- sonar-scanner-3.3.0.1492-linux
- /home/circleci/<< parameters.operatorDir >>/.sonar
- run: # Run sonar scan
name: Sonarcloud Scan
command: |
./sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -X \
-Dsonar.projectName=<< parameters.operatorName >> \
-Dsonar.projectKey=${SONAR_PROJECT} \
-Dsonar.login=${SONAR_TOKEN} \
-Dsonar.branch.name=${CIRCLE_BRANCH} \
-Dsonar.organization=${SONAR_ORGANISATION} \
-Dsonar.host.url=https://sonarcloud.io \
-Dsonar.projectBaseDir=/home/circleci/<< parameters.operatorDir >> \
-Dsonar.sources=. \
-Dsonar.sources.inclusions="**/**.go" \
-Dsonar.exclusions="**/*_test.go,**/vendor/**,**/sonar-scanner-3.3.0.1492-linux/**,**docs/**" \
-Dsonar.coverage.exclusions="**/vendor/**,**/test/**,**docs/**" \
-Dsonar.tests=. \
-Dsonar.language=go \
-Dsonar.sourceEncoding=UTF-8 \
-Dsonar.test.inclusions="**/**_test.go" \
-Dsonar.test.exclusions="**/vendor/**" \
-Dsonar.go.coverage.reportPaths=coverage.out \
-Dsonar.go.tests.reportPaths=test-report.out \
-Dsonar.coverage.dtdVerification=false \
-Dsonar.log.level=INFO
cat -n .scannerwork/report-task.txt
# - run: # Run sonar scan
# name: Sonarcloud Scan
# command: |
# ./sonar-scanner-3.3.0.1492-linux/bin/sonar-scanner -X \
# -Dsonar.projectName=<< parameters.operatorName >> \
# -Dsonar.projectKey=${SONAR_PROJECT} \
# -Dsonar.login=${SONAR_TOKEN} \
# -Dsonar.branch.name=${CIRCLE_BRANCH} \
# -Dsonar.organization=${SONAR_ORGANISATION} \
# -Dsonar.host.url=https://sonarcloud.io \
# -Dsonar.projectBaseDir=/home/circleci/<< parameters.operatorDir >> \
# -Dsonar.sources=. \
# -Dsonar.sources.inclusions="**/**.go" \
# -Dsonar.exclusions="**/*_test.go,**/vendor/**,**/sonar-scanner-3.3.0.1492-linux/**,**docs/**" \
# -Dsonar.coverage.exclusions="**/vendor/**,**/test/**,**docs/**" \
# -Dsonar.tests=. \
# -Dsonar.language=go \
# -Dsonar.sourceEncoding=UTF-8 \
# -Dsonar.test.inclusions="**/**_test.go" \
# -Dsonar.test.exclusions="**/vendor/**" \
# -Dsonar.go.coverage.reportPaths=coverage.out \
# -Dsonar.go.tests.reportPaths=test-report.out \
# -Dsonar.coverage.dtdVerification=false \
# -Dsonar.log.level=INFO
# cat -n .scannerwork/report-task.txt
# Artifacts definitions
- store_test_results: # Store sonar scan reports
path: reports
# - store_test_results: # Store sonar scan reports
# path: reports

publish-helm:
<<: *params_operator
Expand Down Expand Up @@ -497,7 +497,7 @@ workflows:
- operator/publish-helm:
name: publish-helm-orange-incubator-casskop
requires:
- report-casskop
- kuttl-test ScaleUpAndDown
<<: *only_on_release_tag

- deploy-website:
Expand Down