[CT] Add retries to gclient commands

Bug: skia:8835
Change-Id: I8201bf436e7b0fb9d35ef83c6f1c9047b49f5b97
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/199242
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Commit-Queue: Ravi Mistry <rmistry@google.com>
diff --git a/ct/py/gclient_utils.py b/ct/py/gclient_utils.py
index 58c325d..bc6080a 100644
--- a/ct/py/gclient_utils.py
+++ b/ct/py/gclient_utils.py
@@ -19,8 +19,8 @@
 
 
 def _RunCmd(cmd):
-  """ Run a "gclient ..." command. """
-  return shell_utils.run([GCLIENT_PY] + cmd)
+  """ Run a "gclient ..." command with retries. """
+  return shell_utils.run_retry([GCLIENT_PY] + cmd, attempts=3)
 
 
 def GClient():