Jenkins 2.204.1, BFA 1.25.0
Im attempting to retrieve BFA scan results during the post step of a pipeline build using the following (using the HTTP Request plugin):
String test = BUILD_URL + 'api/xml?tree=actions[foundFailureCauses[*]]'
def response = httpRequest test
println('Response: '+ response.content)
When I go to the URL after the build completes, I see this:
The above contains an entry for the BFA failure causes. However, if I use the groovy code to access that same URL during the run, I get:
This result has no mention of any BFA results.
Is it not possible to query BFA results during a run? Or did I miss something?