summaryrefslogtreecommitdiff
path: root/lib/api/builds.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-01-11 15:49:25 +0100
committerTomasz Maczukin <tomasz@maczukin.pl>2016-01-11 15:49:25 +0100
commit5dcfd7d06754fecb245475cc005c112677693801 (patch)
treee26e61d45e7173e5ac22ddf0fb13203846ea95e4 /lib/api/builds.rb
parenta30377c6f1415a863bd40d1876e3cf4c46bb9f5d (diff)
downloadgitlab-ce-5dcfd7d06754fecb245475cc005c112677693801.tar.gz
Add TODO notice to build trace feature in CI API
Diffstat (limited to 'lib/api/builds.rb')
-rw-r--r--lib/api/builds.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb
index 8c21754596b..d3f4e33ebbf 100644
--- a/lib/api/builds.rb
+++ b/lib/api/builds.rb
@@ -61,6 +61,10 @@ module API
# build_id (required) - The ID of a build
# Example Request:
# GET /projects/:id/build/:build_id/trace
+ #
+ # TODO: We should use `present_file!` and leave this implementation for backward compatibility (when build trace
+ # is saved in the DB instead of file). But before that, we need to consider how to replace the value of
+ # `runners_token` with some mask (like `xxxxxx`) when sending trace file directly by workhorse.
get ':id/builds/:build_id/trace' do
build = get_build(params[:build_id])
return not_found!(build) unless build