raise"Project #{project.path_with_namespace} does not have a runner with a description matching #{name}#{"or tags #{@tags}"if@tags&.any?}. Runners available: #{runners}"
# Capturing 500 error code responses to log this issue better. We can consider cleaning it up once https://gitlab.com/gitlab-org/gitlab/-/issues/331753 is addressed.
raise"Response returned a #{response.code} error code. #{response.body}"ifresponse.code==Support::API::HTTP_STATUS_SERVER_ERROR