We are occasionally faced with this error during Perforce sync:
[Updating sources] Failed to perform checkout on agent: Perforce client error:
Connect to server failed; check $P4PORT.
TCP connect to our.perfore.alias:1666 failed.
No such host is known. - while running 'p4 -c TC_p4_HVBUILD53_pr2_9b562815a43ad61f -u builduser -p our.perfore.alias:1666 -H HVBUILD53 info'
[15:12:28][Updating sources] Error message is logged
I would like to write a plugin that captures the error message, parses for certain errors, does something in response to fix the problem and retries updating sources. Is there an existing interface for this in Java OpenAPI? We are on TC 2017.1.1.