Depending on the reason of the failure (bad configuration, bad version of code, etc), either retry the failed deployment ...