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.
Fakih MhamadBy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.