Retry when the script failed or the runner failed to pull the Docker image.
Converts this object into a Yaml object.