My bitbucket pipeline is failing on the step for sonarcloud-quality-gate:0.1.3
Log:
Quality Gate failed: Could not get scanner report: [Errno 2] No such file or directory: '/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/sonarsource/sonarcloud-scan/sonarcloud-scan.log'
this is my bitbucket pipeline
image: node:10-jessie
options:
max-time: 20
clone:
depth: full # SonarCloud scanner needs the full history to assign issues properly
definitions:
steps:
- step: &test-sonarcloud
name: Sonarcloud scan
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:1.1.0
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
DEBUG: "true"
artifacts:
- sonar/**
- step: &check-quality-gate-sonarcloud
name: Check the Quality Gate on SonarCloud
script:
- pipe: sonarsource/sonarcloud-quality-gate:0.1.3
variables:
SONAR_TOKEN: ${SONAR_TOKEN}
DEBUG: "true"
artifacts:
- sonar/**
- step: &getLibrariesAndBuild
name: Get libraries and build
script:
- npm ci
- npm run build
- npm run build-storybook
artifacts:
- build/**
- storybook-static/**
caches:
npm: $HOME/.npm
sonar: $HOME/.cache/sonar
services:
docker:
memory: 2048
pipelines:
pull-requests:
'**':
- parallel:
- step: *check-quality-gate-sonarcloud
- step: *test-sonarcloud
branches: