Commit 16e44ad7 authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix IOError when fetching a new build by runner

parent 6014019e
...@@ -11,9 +11,16 @@ module Ci ...@@ -11,9 +11,16 @@ module Ci
expose :builds expose :builds
end end
class BuildOptions < Grape::Entity
expose :image
expose :services
end
class Build < Grape::Entity class Build < Grape::Entity
expose :id, :commands, :ref, :sha, :project_id, :repo_url, expose :id, :commands, :ref, :sha, :project_id, :repo_url,
:before_sha, :allow_git_fetch, :project_name, :options :before_sha, :allow_git_fetch, :project_name
expose :options, using: BuildOptions
expose :timeout do |model| expose :timeout do |model|
model.timeout model.timeout
......
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