Relative Content

Tag Archive for sonarqubegitlab-cisonar-scanner-cli

Could not find a default branch for project

In gitlab pipeline with self host on my machine, i wrote the script:
sonarscanner.msbuild.exe begin with project key,version,name and token,url host, then i build my solution, finally i wrote sonarscanner.msbuild.exe but i got that error
ERROR: Could not find a default branch for project with key ‘NewBranch’. Make sure project exists.
If i try the script localy in powershell, it run succefully.
I tried the script locally so it run, but in the pipeline it doesnt.Also i tried to write the script inside a powershell script and run it from the pipeline but it doesnt work.