Gradle build reliability telemetry

We have a pretty large team. Sometimes, developers face a lot of build related issues. We want to monitor those common issues and send that to a server for analysis and aggregation. We want to proactively focus on commonly captured issues grouped using stacktrace. What gradle APIs can help me with such a solution?

The BuildService/OperationCompletionListener doesn’t give useful information like detailed causes/stacktrace of the actual issue.

The easiest would be use build scans in Develocity if that is an option

Unfortunately that is not an option. I was thinking of using the Problems API but when I looked at the report generated in the problems directory, they seems to be the problems related to plugins and scripting code.

Is parsing the gradle user home daemon logs the only option then?

As the develocity plugin is capturing the information you are after, they seem to be available, but maybe not with public API. :man_shrugging:

That is a bummer, thanks for your reply.

1 Like