File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,29 +15,10 @@ references:
1515 key : yarn-packages-{{ checksum "yarn.lock" }}
1616 paths :
1717 - ~/.cache/yarn
18- install_sonar : &install_sonar
19- run :
20- name : Install SonarScanner
21- command : |
22- wget https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-4.0.0.1744-linux.zip
23- unzip sonar-scanner-cli-4.0.0.1744-linux.zip
2418 yarn_install : &yarn_install
2519 run :
2620 name : Yarn install
2721 command : yarn install --frozen-lockfile
28- run_sonar : &run_sonar
29- run :
30- name : Run Sonarqube scanner
31- command : |
32- export SONAR_SCANNER_OPTS="-Xmx2048m"
33- eval ./sonar-scanner-4.0.0.1744-linux/bin/sonar-scanner
34- -Dsonar.projectKey=issuer \
35- -Dsonar.sources=. \
36- -Dsonar.sourceEncoding=US-ASCII \
37- -Dsonar.exclusions=vendor/bundle/** \
38- -Dsonar.host.url=https://sonarcloud.io \
39- -Dsonar.projectVersion=0 \
40- -Dsonar.login=${SONARQUBE_TOKEN} $SONAR_SCANNER_OPTS_CUSTOM
4122
4223jobs :
4324 install_dependencies :
7556 << : *container_config
7657 steps :
7758 - checkout
78- - *install_sonar
79- - *run_sonar
8059 - *restore_yarn_cache
8160 - *yarn_install
8261 - *save_cache
You can’t perform that action at this time.
0 commit comments