diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-14 11:27:05 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-14 11:27:25 +0200 |
commit | 16e44ad7fcbbceb0b220dd88dba197b1db797498 (patch) | |
tree | c25cfa32fbdfadddcc3c22df7b4cbaee9f1bf9d8 /lib/ci/api | |
parent | 6014019ed49295178ebd0c4ce5f6f1d210219420 (diff) | |
download | gitlab-ce-16e44ad7fcbbceb0b220dd88dba197b1db797498.tar.gz |
Fix IOError when fetching a new build by runner
Diffstat (limited to 'lib/ci/api')
-rw-r--r-- | lib/ci/api/entities.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb index f5e601d4016..1277d68a364 100644 --- a/lib/ci/api/entities.rb +++ b/lib/ci/api/entities.rb @@ -11,9 +11,16 @@ module Ci expose :builds end + class BuildOptions < Grape::Entity + expose :image + expose :services + end + class Build < Grape::Entity 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| model.timeout |