summaryrefslogtreecommitdiff
path: root/lib/ci
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-01-15 15:35:33 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2016-01-15 15:35:33 +0100
commit1ce766367eb529fe88068be2f34315f87d74a349 (patch)
treece42ab578a0253324c0b78dd516711af55848405 /lib/ci
parentac652d82f17d378e485dcef15a8fabdcf9bad76b (diff)
downloadgitlab-ce-1ce766367eb529fe88068be2f34315f87d74a349.tar.gz
Change dependencies.builds to depends_on_builds
Diffstat (limited to 'lib/ci')
-rw-r--r--lib/ci/api/entities.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ci/api/entities.rb b/lib/ci/api/entities.rb
index 835f8c97021..b25e0e573a8 100644
--- a/lib/ci/api/entities.rb
+++ b/lib/ci/api/entities.rb
@@ -20,7 +20,7 @@ module Ci
expose :name, :token, :stage
expose :project_id
expose :project_name
- expose :artifacts_file, using: ArtifactFile, if: lambda { |build, opts| build.artifacts_file.exists? }
+ expose :artifacts_file, using: ArtifactFile, if: lambda { |build, opts| build.artifacts? }
end
class BuildDetails < Build
@@ -39,9 +39,7 @@ module Ci
end
expose :variables
- expose :dependencies do
- expose :depends_on_builds, as: :builds, using: Build
- end
+ expose :depends_on_builds, using: Build
end
class Runner < Grape::Entity