I have used aws code-build and in the sonarcloud i configure with OTHER CI TOOLS. My repisotry is in github.
You’ll have to make sure that the name of the branch being built is passed to the
sonar.branch.name. See the documentation on Setup with a non-integrated build environment.
Something like GitHub - thii/aws-codebuild-extras: Add extra information of your AWS CodeBuild build via environment variables. might help you extract this information.
I am using aws code build as ci tool, where i pull the branch and do the scan process. I did it for the dev branch but how will do it for the qa,stage and prod branches? When I create aws codebuild for all of these and run the build,it will overwrite the report of dev. I want separate for all branches.