diff options
author | Valeriy Sizov <vsv2711@gmail.com> | 2015-03-03 14:21:15 +0200 |
---|---|---|
committer | Valeriy Sizov <vsv2711@gmail.com> | 2015-03-03 14:21:15 +0200 |
commit | 3f04479f99155765ce322679fb7b72013ec3de28 (patch) | |
tree | f65025f0609fdfa19c045ba0e721ed00cad030a9 /lib | |
parent | 690d1c172e98a7c9a591201bd1f027a8ad3f59b0 (diff) | |
parent | b5be3fc2e23865e7620245ddc712ef29ed35c478 (diff) | |
download | gitlab-ci-3f04479f99155765ce322679fb7b72013ec3de28.tar.gz |
Merge pull request #553 from jvanbaarsen/fix-295
Only update trace when trace is given
Diffstat (limited to 'lib')
-rw-r--r-- | lib/api/builds.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/builds.rb b/lib/api/builds.rb index ba40c89..c4bcf88 100644 --- a/lib/api/builds.rb +++ b/lib/api/builds.rb @@ -32,7 +32,7 @@ module API put ":id" do authenticate_runner! build = Build.where(runner_id: current_runner.id).running.find(params[:id]) - build.update_attributes(trace: params[:trace]) + build.update_attributes(trace: params[:trace]) if params[:trace] case params[:state].to_s when 'success' |