Psake failed builds are marked as success

Dominck Baier's Avatar

Dominck Baier

03 Jan, 2015 09:14 AM


we use psake scripts for building - but even failed builds are recognized as successful builds - e.g.

Any idea what's wrong?


  1. Support Staff 1 Posted by Feodor Fitsner on 04 Jan, 2015 02:56 AM

    Feodor Fitsner's Avatar

    Hm, that's interesting I don't know why PSake selectively re-throws error: - as I understand the topmost PSake script doesn't throw the exception further.

    However, many use $psake global object for checking build status, for example:

    And live example from ChocolateyGUI:

  2. 2 Posted by gep13 on 04 Jan, 2015 08:03 PM

    gep13's Avatar


    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.


  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:53 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? 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