I have a TeamCity 7 Build Configuration which is pretty much only an invocation of a .ps1 script using various TeamCity Parameters.
.ps1
I was hoping that mig
This checks the last error code and exits if is not 0.
If ($LASTEXITCODE -ne 0) { Write-Host "The result was of the previous script was " $LASTEXITCODE Exit $LASTEXITCODE }