Artifacts are not pushed after tests fail

Leonardo Galli's Avatar

Leonardo Galli

10 Apr, 2017 05:59 PM

Hi there,

We are currently pushing our artifacts on galli-leo/radarr-usby1 using this line in the appveyor.yml file:

  - path: '_artifacts\*.zip'
  - path: '_artifacts\*.exe'
  - path: '_artifacts\*.tar.gz'

Sadly, we have some tests that just randomly fail on Windows (not much we can do about that). In that case the artifacts do not get uploaded. Is there anyway to upload them regardless of the tests?

Kind regards,


  1. Support Staff 1 Posted by Ilya Finkelshte... on 10 Apr, 2017 06:32 PM

    Ilya Finkelshteyn's Avatar

    Hi Leonardo,

    I see few ways to workaround this:

    • Upload artifacts with script at on_failure stage in pipeline and leave artifacts section untouched. Thus build will use artifacts section on sunny day and on_failure when some test failed.

    • Upload artifacts with script at on_finish stage in pipeline and remove artifacts. This will behave like finally statement on regardless of tests success.

    • Wrap tests to PowerShell script and upload test results in the end of this script. As long as upload test results step is happy, the whole test_script is happy so build flow will reach artifact upload stage.


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


? 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