Compile errors does not fail the job

zosrothko's Avatar


27 Dec, 2017 07:03 AM


It seems that failing to build a binary does not fail the job as show in

What is missing for making the job failed if there are compile error?


  1. Support Staff 1 Posted by Ilya Finkelshte... on 27 Dec, 2017 08:46 PM

    Ilya Finkelshteyn's Avatar

    PowerShell script is happy as long as last command is happy. To avoid those failed positives in the future, use either cmd, or check exit code after every command (or only commands which most probably can fail) in PowerShell (something like if ($lastexitcode -ne 0){ exit $lastexitcode }).

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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