Fix build script to output valid JSON.
Fix build script to output valid JSON.

christ66/coverity-plugin,jenkinsci/coverity-plugin,christ66/coverity-plugin,jenkinsci/coverity-plugin,jenkinsci/coverity-plugin,christ66/coverity-plugin,jenkinsci/coverity-plugin