summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2016-03-29 15:34:18 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2016-04-20 11:53:39 +0200
commit38a1378e631994ded578a6cfafd0648d22fdf263 (patch)
tree7d1149de8ddabfa7f46d3c8fba821671f01f01dc /lib
parentd7127890546c317bd3469f18b9fb5e3a81554d48 (diff)
downloadgitlab-ce-38a1378e631994ded578a6cfafd0648d22fdf263.tar.gz
Add incremental build trace update API
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/api/builds.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/ci/api/builds.rb b/lib/ci/api/builds.rb
index 2e9a5d311f9..61e15675535 100644
--- a/lib/ci/api/builds.rb
+++ b/lib/ci/api/builds.rb
@@ -50,6 +50,15 @@ module Ci
end
end
+ patch ":id/trace.txt" do
+ authenticate_runner!
+ update_runner_last_contact
+ build = Ci::Build.where(runner_id: current_runner.id).running.find(params[:id])
+ forbidden!('Build has been erased!') if build.erased?
+
+ build.append_trace(params[:trace_part])
+ end
+
# Authorize artifacts uploading for build - Runners only
#
# Parameters: