Capture Variable Values From Different Releases

Hi Team,

How can be capture different variable values from all release (in progress/failed/failing) based on release due date? (variable key will be common in all releases like app_name, app_id, etc)

Basically, the use case is we need to capture certain specific values (contained in variables) and publish them as part of notification mail as part of daily reporting.

Thanks!

hi trojan,
you need to do that from outside release via Rest API Calls.
You can use ReleaseFilter Criteria:
https://docs.xebialabs.com/xl-release/10.1.x/rest-docs/#find-releases-by-criteria
What you get back is a list of Releases, and then you need to iterate on that releases and get the variables for each release:
https://docs.xebialabs.com/xl-release/10.1.x/rest-docs/#variables-on-release-or-templates

Does that help? Without the need for mail a simpler approach would be to use the reporting plugin where you could have scripted reports and use python api instead of Rest API:


Hope that helps !
Matthias