Skip to content

Commit 8e06e7d

Browse files
author
Stefan Sluiter
committed
NEXT-14727 - add sonarqube project properties
1 parent 36fec00 commit 8e06e7d

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.gitlab-ci.yml

+24
Original file line numberDiff line numberDiff line change
@@ -477,3 +477,27 @@ Upload Component Library:
477477
- aws s3 sync --delete --acl public-read . s3://shopware-ui-component-library-docs/
478478
- aws cloudfront create-invalidation --distribution-id E18U17118IAC82 --paths "/*"
479479
interruptible: false
480+
481+
sonarqube-check:
482+
stage: Security
483+
image:
484+
name: sonarsource/sonar-scanner-cli:latest
485+
entrypoint: [""]
486+
before_script: []
487+
variables:
488+
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
489+
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
490+
cache:
491+
key: "${CI_JOB_NAME}"
492+
paths:
493+
- .sonar/cache
494+
artifacts:
495+
when: always
496+
paths:
497+
- development/build/artifacts/phpunit.clover.xml
498+
- development/build/artifacts/phpunit.junit.xml
499+
script:
500+
- sonar-scanner
501+
allow_failure: true
502+
only:
503+
- trunk

sonar-project.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sonar.projectKey=shopware_6_product_platform_AXkSMGV3KmP1qfUJ23cM
2+
sonar.qualitygate.wait=true

0 commit comments

Comments
 (0)