Merge branch 'improve-scripts-trigger-build' into 'master'

Ignore GitLab API hiccups in scripts/trigger-build

See merge request gitlab-org/gitlab-ce!20038
This commit is contained in:
Robert Speicher 2018-06-20 19:52:47 +00:00
commit ad0073bc0f
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