Psake failed builds are marked as success
Hi,
we use psake scripts for building - but even failed builds are recognized as successful builds - e.g.
https://ci.appveyor.com/project/leastprivilege/thinktecture-identityserver-v3/build/1.0.10114
Any idea what's wrong?
thanks
Dominick
Comments are currently closed for this discussion. You can start a new one.
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

Support Staff 1 Posted by Feodor Fitsner on 04 Jan, 2015 02:56 AM
Hm, that's interesting I don't know why PSake selectively re-throws error: https://github.com/psake/psake/blob/master/psake.psm1#L444-L451 - as I understand the topmost PSake script doesn't throw the exception further.
However, many use
$psakeglobal object for checking build status, for example: https://github.com/psake/psake/issues/119And live example from ChocolateyGUI: https://github.com/chocolatey/ChocolateyGUI/blob/develop/BuildScrip...
2 Posted by gep13 on 04 Jan, 2015 08:03 PM
Dom,
I use the $psake.build_success variable both in AppVeyor, and when running build in TeamCity at work. It is the only, reliable, way, that I have found to report the build status back to CI system.
Might be worth checking this with @randompunter, see what he thinks.
Gary
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.