How to get last *finished* build via API

Konstantin Veretennicov's Avatar

Konstantin Veretennicov

20 Mar, 2016 04:32 PM

Hi,

We need to poll AppVeyor for new finished builds and process their results (with Jenkins URLTrigger).
 
I see that AppVeyor has an API to get last project's build:
http://www.appveyor.com/docs/api/projects-builds#get-project-last-build

The problem is that it may point to a build-in-progress. Then artifacts are not ready and processing fails. Is there a way to request latest finished build instead of just latest?

--
Thank you,
Konstantin

  1. Support Staff 1 Posted by Feodor Fitsner on 20 Mar, 2016 05:00 PM

    Feodor Fitsner's Avatar

    I'd check project history to find the most recent build that finished: http://www.appveyor.com/docs/api/projects-builds#get-project-history

    -Feodor

  2. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:04 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac