how to allow deployment even if tests/build fails?

Mark Garrison's Avatar

Mark Garrison

19 Dec, 2018 08:10 PM

I think I saw the solution online yesterday, but I can't for the life of me find it now.

I think there is a variable to set that allows the deployment to still execute even if the build fails. By default, deployment doesn't happen unless the build is successful.

Thanks!

  1. 1 Posted by Mark Garrison on 19 Dec, 2018 08:25 PM

    Mark Garrison's Avatar

    Oh wait I was looking at "APPVEYOR_SAVE_CACHE_ON_ERROR". Maybe there isn't an equivalent for deploying on test failure.

    I guess this technically answers it:
    https://help.appveyor.com/discussions/suggestions/546-attempt-to-add-artifacts-whether-build-is-successful-or-not

    Although it seems to me that on_failure would be better than on_finish, allowing the regular deploy flow to still be used when the build passes.

  2. Support Staff 2 Posted by Ilya Finkelshte... on 19 Dec, 2018 09:04 PM

    Ilya Finkelshteyn's Avatar

    Right, we do not have "deploy anyway" tweak variable. Discussion you mention is has a valid approach, provided that you still have something (some artifact) to deploy even if build failed.

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