check attachment SS
this key i have set in sonar-scanner.properties , i have tried manually setup select macos also tried objectiveC command but getting error like ,below
15:45:53.928 ERROR: Error during SonarScanner execution, org.sonarsource.scanner.api.internal.ScannerException: Unable to execute SonarScanner analysis
also getting error on buildwrapper command : The following build commands failed:
** SwiftGeneratePch normal arm64 Compiling\ bridging\ header (in target ‘ShowMeScreenShare’ from project ‘ShowMeByBlitzz’)**
i also getting this error
ERROR: Project not found. Please check the ‘sonar.projectKey’ and ‘sonar.organization’ properties, the ‘SONAR_TOKEN’ environment variable, or contact the project administrator
Okay. In that case, forget about the build wrapper and make sure you’ve configured sonar.c.file.suffixes=- (also for cpp and objc) as you were in the screenshot above (but don’t do this in a sonar-scanner.properties file).
If you’re still receiving this error:
I suggest posting your analysis logs in full, so it’s clear at what stage of the analysis the issue is being raised.
hi colin checked this doc in this below description where i have to set this two parameter in environ variable or sonar property list ? also check attachment renaming branch with current branch name it will auto analys branch that we want to be analys?
using this command sonar-scanner
Note: using terminal for setup manually
Under the hood
Internally, when the SonarScanner performs a branch analysis in an integrated CI, it automatically sets two analysis parameters:
sonar.branch.name: The name of the branch that was analyzed.
sonar.branch.target: The name of the target branch of the branch that was analyzed.
i have recreate Project can you guide me where to mention branch name ?
in sonar properti file or in command line like below