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:

artifacts:
  - 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,

Leo

  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.

    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

19 Oct, 2017 02:25 AM
18 Oct, 2017 07:26 PM
18 Oct, 2017 11:00 AM
18 Oct, 2017 08:54 AM
18 Oct, 2017 07:42 AM

 

17 Oct, 2017 07:36 PM
17 Oct, 2017 05:39 PM
17 Oct, 2017 04:29 PM
17 Oct, 2017 07:49 AM
16 Oct, 2017 11:38 PM
16 Oct, 2017 10:01 PM