Fix exiting with zero exit code when cmdlets fail
What does this MR do?
Fixes zero exit codes when cmdlets fail.
Why was this MR needed?
Try adding "echo 123 >nul" to build commands, PS will fail, but exits with zero exit code, leading to job success.
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
- Documentation created/updated
- Added tests for this feature/bug
In case of conflicts with
master- branch was rebased