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:
commit
ad0073bc0f
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue