- ALM used (Bitbucket)
- CI system used Bitbucket Cloud
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
definitions:
caches:
sonar: ~/.sonar/cache # Caching SonarCloud artifacts will speed up your build
steps:
- step: &build-test-sonarcloud
name: Build, test and analyze on SonarCloud
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:1.2.1
variables:
SONAR_TOKEN: $SONAR_TOKEN
SONAR_SCANNER_OPTS: -Xmx512m
DEBUG: "true"
EXTRA_ARGS: '-Dsonar.host.url=https://sonarcloud.io -Dsonar.login=SONAR_TOKEN'
- step: &check-quality-gate-sonarcloud
name: Check the Quality Gate on SonarCloud
script:
- pipe: sonarsource/sonarcloud-quality-gate:0.1.4
- Languages of the repository: Angular
- Considerations:
- Do not have a sonar-project.properties file, because documentation does not even said anything about that.
- Steps to reproduce:
Run pipeline
*Error Message:
Caused by: Not authorized. Please check the property sonar.login or SONAR_TOKEN env variable
20:13:59.964 ERROR:
- Potential workaround:
- I do not know, because even the 3 steps to start don’t work .Is there any support to solve this?