P4 bad submit: Error in change specification
Can I setup notifications for when Perforce has problems completing a Submit?
Background
It's unusual for a Perforce submit operation to fail, but when it does happen it leaves behind a pending changelist, which can block other users. This can result in VersIC Errors such as the below:
Files in Pending Changelists cannot be submitted until the problem that caused submit to fail is solved and the changelist is deleted or successfully re-submitted. This means it's important to find out as quickly as possible about failed submits so that they can be cleaned up before they affect other users. VersIC provides a mechanism to send notify designated users/administrators on submit failure.
VSC_REPORT_FAILURE
If VSC_REPORT_FAILURE is set, and a p4 submit operation fails (returns a non-zero exit status or the output contains errors), a Mail Support bundle will be sent to the designated address(es)
Details are in versic.conf:
;;;---------------------------------------------------------------------------- ;;; Automatic failure reporting ;;; ;;; Report some* failures automatically via Mail Support ;;; ;;; nil: Do not automtically report failures ;;; t: Report failures automatically, using the Mail Support settings above ;;; Space-separated list of email addresses: ;;; Report failures automatically, send email to given email address(es) ;;; (e.g. VSC_REPORT_FAILURES="cad_support@example.com") ;;; ;;; VSC_REPORT_FAILURES: Dynamic ;;; ;;; * currently available only for failures on 'p4 submit' ;;;---------------------------------------------------------------------------- VSC_REPORT_FAILURES = nil