diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-27 21:09:58 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-28 14:17:38 +0900 |
commit | db55fa594274c95ffade4089aad3d463f918d4c3 (patch) | |
tree | d5ebec33940ca3a8bac5cbef421a87617a714c05 | |
parent | 88b93f55a13f51776991d0437d8a63e18e777419 (diff) | |
download | gitlab-ce-db55fa594274c95ffade4089aad3d463f918d4c3.tar.gz |
Disallow updating job stauts if it's not running
-rw-r--r-- | lib/api/runner.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb index a7f1cb1131f..59898cd2477 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -123,6 +123,7 @@ module API end put '/:id' do job = authenticate_job! + forbidden!('Job is not running') unless job.running? job.trace.set(params[:trace]) if params[:trace] |