Method: Gitlab::Client::Builds#build_artifacts
- Defined in:
- lib/gitlab/client/builds.rb
#build_artifacts(project, id) ⇒ Gitlab::FileResponse
Gets build artifacts.
43 44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/gitlab/client/builds.rb', line 43 def build_artifacts(project, id) get("/projects/#{url_encode project}/builds/#{id}/artifacts", format: nil, headers: { Accept: 'application/octet-stream' }, parser: proc { |body, _| if body.encoding == Encoding::ASCII_8BIT # binary response ::Gitlab::FileResponse.new StringIO.new(body, 'rb+') else # error with json response ::Gitlab::Request.parse(body) end }) end |