tag:help.appveyor.com,2012-11-13:/discussions/questions/45526-how-to-save-artifacts-protractor-screenshots-for-failed-buildsAppVeyor: Discussion 2020-01-03T15:16:59Ztag:help.appveyor.com,2012-11-13:Comment/479643732020-01-03T15:16:41Z2020-01-03T15:16:41ZHow to save artifacts (protractor screenshots) for failed builds?<div><p>Turned out the <code>on_failure</code> variant errored with:</p>
<pre>
<code>File not found: C:\projects\my-project\'\jasmine-reports\last-failed-spec.png'
Command exited with code 2</code>
</pre>
<p>so the <code>./</code> part of the yml instruction was causing issues. After removing that, there were more errors, because the quotes also got included verbatim, causing a similar error. After removing <em>that</em> as well, it started working.</p></div>jeroen.heijmans