diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-04-17 21:04:43 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-04-21 19:24:53 +0300 |
commit | f876234f92f868ee34038865521d86e1ebb3ae22 (patch) | |
tree | 81246cd7f61a07c918cdd8ebca19e281a539bec4 /lib/api/entities.rb | |
parent | b3e2939aa2904c92aba0399d511cb05228bfc9be (diff) | |
download | gitlab-ci-f876234f92f868ee34038865521d86e1ebb3ae22.tar.gz |
API for deploy jobs
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 8c4b3c1..3d98866 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -17,7 +17,8 @@ module API end class Project < Grape::Entity - expose :id, :name, :timeout, :token, :default_ref, :gitlab_url, :always_build, :polling_interval, :public, :ssh_url_to_repo, :gitlab_id + expose :id, :name, :timeout, :token, :default_ref, :gitlab_url, + :always_build, :polling_interval, :public, :ssh_url_to_repo, :gitlab_id end class RunnerProject < Grape::Entity @@ -29,7 +30,13 @@ module API end class Job < Grape::Entity - expose :id, :project_id, :commands, :active, :name, :build_branches, :build_tags, :tags + expose :id, :project_id, :commands, :active, :name, :build_branches, + :build_tags, :tags, :job_type, :tag_list + end + + class DeployJob < Grape::Entity + expose :id, :project_id, :commands, :active, :name, + :refs, :tags, :job_type, :refs, :tag_list end end end |