Note: When failonerror is set to true and the command fails, diagnostic error messages from the SCM command will not be displayed or logged. To receive error messages and still fail the build when an error occurs, set failonerror to false and failonresult to true.