I've set up a 'final' script task which requests the build status from <server>/rest/api/latest/result/<key>/latest
I've just noticed that a build failed last night but the results from the API showed it as successful (it had returned the previous build's data).
At what point is the 'latest' data updated? After all tasks (including final ones) are completed? I'm just wondering if a small delay in the script is enough to avoid this issue or if the script needs to complete before the data will be up to date..
For more consistency, have you tried to change trigger as
Then provide as shared artifacts or something like that,
Just interesting your use case.
G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events