diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-06-07 17:27:26 +0200 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2018-06-07 18:45:48 +0200 |
commit | a6a900256e194c28d8342db9c2d67df784877c14 (patch) | |
tree | fabd5896948584c4c787aca84e59af166b1e13ec /lib/api/helpers | |
parent | 6fafc63117a9382ee088e364e83431ebd1b63a4a (diff) | |
download | gitlab-ce-a6a900256e194c28d8342db9c2d67df784877c14.tar.gz |
Change update entrypoint instead of adding new keep-alive one
Diffstat (limited to 'lib/api/helpers')
-rw-r--r-- | lib/api/helpers/runner.rb | 5 |
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 |