image: node:lts # Choose an image matching your project needs
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
services:
docker:
memory: 1024
docker-with-large-memory:
memory: 7168
type: docker #For large file line code
steps:
- step:
name: Install dependencies
caches:
- node
script:
- npm install
- npm install -g increase-memory-limit
- step: &build-test-sonarcloud
name: Build, test and analyze on SonarCloud
caches:
- sonar
script: # Build your project and run
- pipe: sonarsource/sonarcloud-scan:2.0.0
variables:
EXTRA_ARGS: "--exclude=src/@fuse/* -X" - step: &check-quality-gate-sonarcloud
name: Check the Quality Gate on SonarCloud
script:
- pipe: sonarsource/sonarcloud-quality-gate:0.1.6
variables:
default:
- step: *build-test-sonarcloud
- step: *check-quality-gate-sonarcloud
above is code of my bitbucket-pipeline.yml file for my react.js project but i still faced below issue as show in image
