diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-03-29 16:34:18 +0300 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-04-20 12:53:39 +0300 |
commit | 38a1378e631994ded578a6cfafd0648d22fdf263 (patch) | |
tree | 7d1149de8ddabfa7f46d3c8fba821671f01f01dc /lib/ci/api | |
parent | d7127890546c317bd3469f18b9fb5e3a81554d48 (diff) |
Add incremental build trace update API
Diffstat (limited to 'lib/ci/api')
-rw-r--r-- | lib/ci/api/builds.rb | 9 |
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: |