I\'m using Jenkins PowerShell plugin to build a project.
However, I found that Jenkins always considers my build successful no matter what I type inside Windows P
Windows P
As of 1.3, the plugin will not handle exceptions such as those from missing commands. You can do this yourself with try/catch:
try/catch
try { asdf } catch { write-host "Caught an exception" exit 1 }
See MSDN for more.