Hi,
I am using sonarcloud and nodejs. Getting error.
Please find the below my project structure and pipeline.yml code. Please let me know whether project folder structure issue or the yml file issue and what i have to change.?
image: node:14
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: - node
- sonar
script: - npm install --quiet
- npm run-script build
- pipe: sonarsource/sonarcloud-scan:1.4.0
- step: &check-quality-gate-sonarcloud
name: Check the Quality Gate on SonarCloud
script: - pipe: sonarsource/sonarcloud-quality-gate:0.1.6
pipelines: # More info here: Configure bitbucket-pipelines.yml | Bitbucket Cloud | Atlassian Support
branches:
master:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
pull-requests:
‘**’: - step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud