retry deployment 10 times if an error occurs to workaround proxy issues

Change-Id: Iacb1157431415a4779a3dadae6b1158303fda086