Idan Marciano
03/17/2025, 9:00 AMapi/tests/containers with parameters? the wiki does not contain any structure of the APi and its very hard to tell.
This is something i came up with but it does not work
<url>/api/tests/containers?container="*"&testOutcomes=failed&query=user:bla buildStartTime:"2025-03-14T09:15:30+02:00 to 2025-03-15T12:30:45+02:00"
I am trying to get top 10 flaky tests from an API callInaki Villar
03/17/2025, 3:21 PMcurl --location -G \
'https://$DV_URL/api/tests/containers' \
--header "Authorization: Bearer $TOKEN" \
--data-urlencode 'container=*' \
--data-urlencode 'testOutcomes=flaky' \
--data-urlencode 'include=buildScanIds' \
--data-urlencode 'query=buildStartTime>-7d'Idan Marciano
03/19/2025, 12:31 PMInaki Villar
03/19/2025, 3:12 PMquery parameter supports the advanced search syntax https://docs.gradle.com/develocity/api-manual/#advanced_search_syntax
for instance:
--data-urlencode 'query=buildStartTime>-7d tag:CI project:geode'