An API to update a build status to _Failed_

damien.osullivan's Avatar

damien.osullivan

14 Mar, 2019 03:09 AM

Hey,

We have recently moved some of our testing outside of our AppVeyor build. We moved it to a distributed testing fleet in order to it speed up. We halved our build time as a result.

Now we have an interesting problem when our test suite fails. Before AppVeyor would fail, and the status would be failed. Now, the tests fail on our fleet, and we have no way of knowing when looking at AppVeyor. This is a problem as we use AppVeyor to determine the last successful build for us to deploy from.

I am wondering is there any way we could update AppVeyor's status? An API call, something like

POST /api/builds/{buildId}
{
    'status': 'failed' # or 'failed-external'?
}

This would help everything in AppVeyor. Thanks

  1. Support Staff 1 Posted by Ilya Finkelshte... on 15 Mar, 2019 08:41 PM

    Ilya Finkelshteyn's Avatar

    Hi Damien,

    Sorry for some delay with the answer and thank you for the request. We treat build status as immutable. To solve this and similar problems we plan to introduce searchable tags/annotations to many objects like build, build jobs, deployments, etc. Setting those tags with API will be possible as well. Cannot provide specific ETA now.

    I am not sure I can provide you a workaround for now. Is that external test execution can be checked with some API from AppVeyor build?

    Ilya.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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

Recent Discussions

26 Mar, 2019 06:34 AM
26 Mar, 2019 06:27 AM
25 Mar, 2019 09:12 PM
25 Mar, 2019 06:34 PM
25 Mar, 2019 06:20 AM

 

24 Mar, 2019 06:52 PM
24 Mar, 2019 05:26 PM
24 Mar, 2019 03:07 AM
22 Mar, 2019 02:20 PM
22 Mar, 2019 11:00 AM
22 Mar, 2019 02:51 AM