The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Latest build state from API out of date?

Will Payne
September 13, 2018

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..

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Gonchik Tsymzhitov
Community Champion
September 13, 2018

Hi! 

 

For more consistency, have you tried to change trigger as 

https://bitbucket.org/chystoprudov/bamboo-failtrigger-plugin/src/master/

Then provide as shared artifacts or something like that, 

 

Just interesting your use case.

 

Cheers,

Gonchik Tsymzhitov

TAGS
AUG Leaders

Atlassian Community Events