tag:help.appveyor.com,2012-11-13:/discussions/problems/558-setting-exit-code-to-powershell-script-does-not-workAppVeyor: Discussion 2018-10-19T08:16:39Ztag:help.appveyor.com,2012-11-13:Comment/338297492014-07-19T05:39:33Z2014-07-19T05:39:33ZSetting exit code to Powershell script does not work<div><p>Hi Alex,</p>
<p>It's not currently implemented, but I'll look into that.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/338297492014-07-19T15:20:20Z2014-07-19T15:20:20ZSetting exit code to Powershell script does not work<div><p>We've just deployed an update implementing that. Give it another
try and let me know how it goes.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/338297492014-07-21T10:51:43Z2014-07-21T10:52:15ZSetting exit code to Powershell script does not work<div><p>Hey Feodor, thanks for the quick fix. However, it does not
appear to have worked. The build is still green, even though there
are failed tests. I have even tried to call
<code>$host.SetShouldExit(1)</code> myself to make sure it was not
anything related to Pester.</p></div>Alex Tercetetag:help.appveyor.com,2012-11-13:Comment/338297492014-07-21T15:22:49Z2014-07-21T15:22:49ZSetting exit code to Powershell script does not work<div><p>Will take a look.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/338297492014-07-22T06:50:27Z2014-07-22T06:50:27ZSetting exit code to Powershell script does not work<div><p>OK, found the issue, fixed and deployed update.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/338297492014-07-22T11:57:14Z2014-07-22T11:57:14ZSetting exit code to Powershell script does not work<div><p>It works! Thanks!</p>
<p>Keep up the great work!</p></div>Alex Tercete