Post the results to SQ instance using curl

Since I am severely blocked by this, is there a way to:

  • run the sonar-scanner analysis using the command line tool
  • post the results to SQ using curl

My instance is deployed behind CloudFlare so I am unable to bypass it.

Here is a relevant discussion

Hey there.

Using POST api/ce/submit (Internal API documented in the Web API as such) and the sonar.scanner.keepReport analysis parameter, yes it is possible. It is also not supported or documented, and you’ll have to perform some trial and error to get it working if you go this route (we won’t detail how to do it)

1 Like