List build configuration not executed for a certain period of time

Is it possible to get the list of build configurations which were not running for quite sometime in Teamcity

0
1 comment
Hi Manjula,

It requires comparing the results of two requests.
1. Get all the builds executed after a certain timestamp. See documentation: https://www.jetbrains.com/help/teamcity/rest/get-build-details.html#Get+Specific+Builds
For example, /app/rest/builds?locator=startDate:(date:20250101T000000%2B0100,condition:after) will get you all builds started after January 1st, 2025 00:00 in the GMT+1 timezone.
You can add &fields=build(buildTypeId) to the request to get only the build configurations' IDs.
2. List all build configurations: https://www.jetbrains.com/help/teamcity/rest/manage-build-configuration-details.html#List+Build+Configurations
3. The built configuration IDs present in the response to the second request but not in the response to the first request are the build configurations that were not executed after the specified in the first request timestamp.

Best regards,
Anton
0

Please sign in to leave a comment.