tag:help.appveyor.com,2012-11-13:/discussions/questions/31954-how-to-allow-deployment-even-if-testsbuild-failsAppVeyor: Discussion 2019-02-19T21:00:29Ztag:help.appveyor.com,2012-11-13:Comment/466913882018-12-19T20:10:42Z2018-12-19T20:10:42Zhow to allow deployment even if tests/build fails?<div><p>I think I saw the solution online yesterday, but I can't for the life of me find it now.</p>
<p>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.</p>
<p>Thanks!</p></div>Mark Garrisontag:help.appveyor.com,2012-11-13:Comment/466913882018-12-19T20:25:40Z2018-12-19T20:25:40Zhow to allow deployment even if tests/build fails?<div><p>Oh wait I was looking at "APPVEYOR_SAVE_CACHE_ON_ERROR". Maybe there isn't an equivalent for deploying on test failure.</p>
<p>I guess this technically answers it:<br>
<a href="https://help.appveyor.com/discussions/suggestions/546-attempt-to-add-artifacts-whether-build-is-successful-or-not">https://help.appveyor.com/discussions/suggestions/546-attempt-to-ad...</a></p>
<p>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.</p></div>Mark Garrisontag:help.appveyor.com,2012-11-13:Comment/466913882018-12-19T21:04:24Z2018-12-19T21:04:24Zhow to allow deployment even if tests/build fails?<div><p>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.</p></div>Ilya Finkelshteyn