summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorJacob Schatz <jschatz@gitlab.com>2016-05-12 16:48:42 +0000
committerJacob Schatz <jschatz@gitlab.com>2016-05-12 16:48:42 +0000
commitf2303f9df061d6ff85d0ff0fee9e3aa54df97ea7 (patch)
tree72383406de96e7c4ae10994d556a8cdb90f7592a /app/controllers
parent95163307ae0c363d309b02c624c40b1ad9a03f06 (diff)
parent5bd356eb31fb4684199f6f681f4901ebe025ed92 (diff)
downloadgitlab-ce-f2303f9df061d6ff85d0ff0fee9e3aa54df97ea7.tar.gz
Merge branch 'send-incremental-build-log' into 'master'
Update build log incrementally Proof of concept implementation of incremental sending of build log to browser. cc @jschatz1 @vsizov @grzesiek @tmaczukin See merge request !3737
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/builds_controller.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb
index b8b9e78427d..bb1f6c5e980 100644
--- a/app/controllers/projects/builds_controller.rb
+++ b/app/controllers/projects/builds_controller.rb
@@ -38,6 +38,14 @@ class Projects::BuildsController < Projects::ApplicationController
end
end
+ def trace
+ respond_to do |format|
+ format.json do
+ render json: @build.trace_with_state(params[:state]).merge!(id: @build.id, status: @build.status)
+ end
+ end
+ end
+
def retry
unless @build.retryable?
return render_404