Ignore GitLab API hiccups in scripts/trigger-build
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
222284a6bf
commit
67f310e41f
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue