Commit ad0073bc authored by Robert Speicher's avatar Robert Speicher

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

Ignore GitLab API hiccups in scripts/trigger-build

See merge request gitlab-org/gitlab-ce!20038
parents 73db8232 67f310e4
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment