- ALM used (Bitbucket Cloud)
- CI system used (Bitbucket Cloud)
- Pipeline created like:
image: atlassian/default-image:2
options:
docker: true
size: 2x
clone:
depth: full
definitions:
caches:
sonar: ~/.sonar/cache
steps:
- step: &sonarcloudanalyze
name: Analyze on SonarCloud
caches:
- sonar
script:
- pipe: sonarsource/sonarcloud-scan:1.3.0
variables:
SONAR_TOKEN: 'XXXXXXX'
EXTRA_ARGS: -Dsonar.projectDescription=\"ABC" -Dsonar.eslint.reportPaths=\"SonarCloud/sonarqube-generic-coverage.xml\"
SONAR_SCANNER_OPTS: -Xmx512m
DEBUG: "false"
size: 2x
services:
- docker
services:
docker:
memory: 2048
pipelines:
branches:
'*':
- step: *sonarcloudanalyze```
-
Languages of the repository =Swift
-
Error observed is below:
INFO: Sensor Generic Coverage Report
INFO: Parsing /opt/atlassian/pipelines/agent/build/SonarCloud/sonarqube-generic-coverage.xml
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 1:26.622s
INFO: Final Memory: 101M/354M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Error during parsing of the generic coverage report '/opt/atlassian/pipelines/agent/build/SonarCloud/sonarqube-generic-coverage.xml'. Look at SonarQube documentation to know the expected XML format.
ERROR: Caused by: /opt/atlassian/pipelines/agent/build/SonarCloud/sonarqube-generic-coverage.xml (No such file or directory)
ERROR:
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.
✖ SonarCloud analysis failed. (exit code = 2)
Kindly guide me if i am missing anything while generating the pipeline.