Make the pages deployment usage mandatory
Currently, we rescue if we fail to create pages deployment. This can create a disreptancy between what is presented and what is deployed:
rescue => e
# we don't want to break current pages deployment process if something goes wrong
# TODO: remove this rescue as part of https://gitlab.com/gitlab-org/gitlab/-/issues/245308
Gitlab::ErrorTracking.track_and_raise_for_dev_exception(e)
We should make the pages_deployment
to be mandatory and retried to consider the deploy to be succesful.