summaryrefslogtreecommitdiff
path: root/lib/api/helpers/runner.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-06-07 17:27:26 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2018-06-07 18:45:48 +0200
commita6a900256e194c28d8342db9c2d67df784877c14 (patch)
treefabd5896948584c4c787aca84e59af166b1e13ec /lib/api/helpers/runner.rb
parent6fafc63117a9382ee088e364e83431ebd1b63a4a (diff)
downloadgitlab-ce-a6a900256e194c28d8342db9c2d67df784877c14.tar.gz
Change update entrypoint instead of adding new keep-alive one
Diffstat (limited to 'lib/api/helpers/runner.rb')
-rw-r--r--lib/api/helpers/runner.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/api/helpers/runner.rb b/lib/api/helpers/runner.rb
index 35ac0b4cbca..61eb88d3331 100644
--- a/lib/api/helpers/runner.rb
+++ b/lib/api/helpers/runner.rb
@@ -59,6 +59,11 @@ module API
def max_artifacts_size
Gitlab::CurrentSettings.max_artifacts_size.megabytes.to_i
end
+
+ def job_forbidden!(job, reason)
+ header 'Job-Status', job.status
+ forbidden!(reason)
+ end
end
end
end