Ignore GitLab API hiccups in scripts/trigger-build

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2018-06-20 17:17:29 +02:00
parent 222284a6bf
commit 67f310e41f
No known key found for this signature in database
GPG key ID: 98DFFD1C0C62B70B

View file

@ -165,6 +165,10 @@ module Trigger
end end
JSON.parse(res.body)['status'].to_s.to_sym JSON.parse(res.body)['status'].to_s.to_sym
rescue JSON::ParserError
# Ignore GitLab API hiccups. If GitLab is really down, we'll hit the job
# timeout anyway.
:running
end end
end end
end end