Add retry logic for Publishtests