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
1 changed files with 4 additions and 0 deletions

View File

@ -165,6 +165,10 @@ module Trigger
end
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