Sonarcloud code coverage using a cloud location

Template for a good new topic, formatted with Markdown:

We are using golang code coverage report properties like this:

sonar.go.coverage.reportPaths=Coverage_report/cover.out

Here the Coverage_report is a path in the repository.
Can we use any network accessible locations like a S3 bucket?
If possible, what is the configuration that needs to be passed here?

Hi,

Welcome to the community!

Be cautious with this. The paths in the coverage report can typically be either relative or absolute, but they need to match up to the paths analysis sees.

 
HTH,
Ann

Hi Ann,

Thank you for the reply.
So it can lookup to a S3 bucket with public access and url ?

s3://my_bucket/go_coverage.out

-Kallol

Hi Kallol,

That’s not going to work. Same-box only, I’m afraid.

 
Ann