`Skipping cache upload for failed step`
`Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4`
`Finished scanning for test reports. Found 0 test report files.`
`Merged test suites, total number tests is 0, with 0 failures and 0 errors.`
`Skipping cache upload for failed step`
`Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4`
`Finished scanning for test reports. Found 0 test report files.`
`Merged test suites, total number tests is 0, with 0 failures and 0 errors.`
Since there’s no output of the cat, the file probably does not exist in a context where it can be read, hence why you receieve an error that the file does not exist.
When/How are you producing the compilation database?
I can’t share much of the details can you be more precise on it. Do i need to create an empty file as there are is no compile-commands.json file. There are no C++ , Obj C related code files and there are only swift files present in the repo.
Can i know how to fix this…?
image: gcc:10
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:
# Download and configure SonarScanner
- export SONAR_SCANNER_VERSION=4.4.0.2170
- export SONAR_SCANNER_HOME=$HOME/.sonar/sonar-scanner-$SONAR_SCANNER_VERSION-linux
- curl --create-dirs -sSLo $HOME/.sonar/sonar-scanner.zip https://binaries.sonarsource.com/Distribution/sonar-scanner-cli/sonar-scanner-cli-$SONAR_SCANNER_VERSION-linux.zip
- unzip -o $HOME/.sonar/sonar-scanner.zip -d $HOME/.sonar/
- export PATH=$SONAR_SCANNER_HOME/bin:$PATH
# Run SonarScanner for Swift analysis with the existing Xcode project
- sonar-scanner -Dsonar.language=swift -Dsonar.swift.workspace=UI.xcodeproj
pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
branches:
master:
- step: *build-test-sonarcloud
pull-requests:
'**':
- step: *build-test-sonarcloud
How to solve it…Can you please reply immediately. Thank you very much.