tag:help.appveyor.com,2012-11-13:/discussions/questions/752-how-to-ignore-exit-codes-of-a-cmdAppVeyor: Discussion 2022-10-12T21:25:00Ztag:help.appveyor.com,2012-11-13:Comment/354257342014-12-01T17:29:04Z2014-12-01T17:29:04ZHow to ignore exit codes of a cmd<div><p>A quick idea - you can do a "wrapping" batch file, say
<code>gitlink.cmd</code> and set exit code to 0 before exit.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/354257342014-12-02T16:38:05Z2014-12-02T16:38:05ZHow to ignore exit codes of a cmd<div><p>Good idea. In the meantime I have decided to just make it work
on all projects, but I will keep this in mind until next time.</p></div>Geert van Horriktag:help.appveyor.com,2012-11-13:Comment/354257342015-04-30T21:45:37Z2015-04-30T21:45:37ZHow to ignore exit codes of a cmd<div><p>You should do this -</p>
<p>command && exit 0</p>
<p>Proof that it works <a href="https://ci.appveyor.com/project/puppetlabs/puppetlabs-acl/build/1.1.x.7/job/xi92d5wv0wuw5qmq#L141">
https://ci.appveyor.com/project/puppetlabs/puppetlabs-acl/build/1.1...</a></p>
<p>Look at the next few lines, that was throwing errors and exiting
with non-zero exit code</p></div>ferventcodertag:help.appveyor.com,2012-11-13:Comment/354257342017-12-18T02:50:28Z2022-10-12T21:25:00ZHow to ignore exit codes of a cmd<div><p>Pretty sure that should be:</p>
<p>command & exit 0</p>
<p>with only a single ampersand. Otherwise, it stops when the command stops and that is the error code you get.</p></div>jefftag:help.appveyor.com,2012-11-13:Comment/354257342018-01-01T21:17:35Z2018-01-01T21:17:35ZHow to ignore exit codes of a cmd<div><p>Hi Jeff,<br>
You are likely correct there.</p></div>ferventcoder