Sonar scanner return exit code


(Sriram) #1

I am currently setting up aws codepipline. I am scanning my PHP code in the codebuild phase. I have referred to the below post to set up that.

I am trying to stop the build if the scan identified any error. But the sonar scanner always returns 0 even the scan failed. Is there any way to stop the codebuild if the scan failed?