Cloud Build builds your projects for release by default. To run builds in strict mode, go to the build target’s Advanced Options and check the Run builds in strict mode box.