add refresh_pillar and sync_all on retry for jenkins and gerrit states

Related: PROD-16463

Change-Id: I57da7f8b5459f9c58143276c1c768537c82d7f28
1 file changed