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

Commit

Permalink
Merge pull request #297 from Orange-OpenSource/fix-sonar-jdk
Browse files Browse the repository at this point in the history
Fix sonar jdk
  • Loading branch information
fdehay authored Feb 5, 2021
2 parents 8a522b8 + c4502a6 commit abcde6e
Showing 1 changed file with 29 additions and 29 deletions.
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

0 comments on commit abcde6e

Please sign in to comment.