summaryrefslogtreecommitdiff
path: root/lib/api/helpers/runner.rb
Commit message (Collapse)AuthorAgeFilesLines
* Persist runner IP address on contact (#43489)Dylan Griffith2018-02-281-6/+12
|
* Merge branch 'master' into ↵Matija Čupić2018-02-041-4/+2
|\ | | | | | | 38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour
| * use Gitlab::UserSettings directly as a singleton instead of ↵Mario de la Ossa2018-02-021-4/+2
| | | | | | | | including/extending it
* | Refactor runner attribute caching implementationMatija Čupić2018-02-041-1/+1
| |
* | Move info update implementation to Ci::Runner modelMatija Čupić2018-01-291-26/+1
| |
* | Update runner info on all authenticated requestsMatija Čupić2018-01-291-0/+2
| |
* | Extend Runner API helpers with cache info storageMatija Čupić2018-01-291-5/+11
|/
* Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+1
| | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* `current_application_settings` belongs on `Gitlab::CurrentSettings`Sean McGivern2017-08-311-0/+2
| | | | | | | | | | | | | | | | The initializers including this were doing so at the top level, so every object loaded after them had a `current_application_settings` method. However, if someone had rack-attack enabled (which was loaded before these initializers), it would try to load the API, and fail, because `Gitlab::CurrentSettings` didn't have that method. To fix this: 1. Don't include `Gitlab::CurrentSettings` at the top level. We do not need `Object.new.current_application_settings` to work. 2. Make `Gitlab::CurrentSettings` explicitly `extend self`, as we already use it like that in several places. 3. Change the initializers to use that new form.
* Fix current feature related specsTiago Botelho2017-06-281-1/+2
|
* Backport API changes needed to fix sticking in EEbackport-sticking-api-helper-changesYorick Peterse2017-03-311-1/+5
| | | | | | These changes are ported over from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/1502 to reduce the number of merge conflicts that may occur.
* Remove legacy Runners support in /api/v4/jobs/requestTomasz Maczukin2017-03-201-8/+0
| | | | | | | | | | | | | | | In Runner v1.3.0 we've started to send User-Agent header with Runner's version data. Since GitLab v8.12.0 we've started to use this header to check if used Runner's version supports 204 status code instead of 404 as a response when there is no jobs to execute by a Runner. In APIv4 (introduced in GitLab 9.0.0) will require Runner v9.0.0. And writing more accurately: GitLab Runner v9.0.0 will require GitLab at least 9.0.0. Because of such breaking change we are able to switch entirely to 204 response code and there is no need to do check of User-Agent. This commit removes useless code and complexity.
* Fix rubocop offensesTomasz Maczukin2017-03-021-2/+2
|
* Add artifacts uploading authorize APITomasz Maczukin2017-03-021-0/+4
|
* Add job patch trace APITomasz Maczukin2017-03-021-0/+13
|
* Add job update APITomasz Maczukin2017-03-021-1/+10
|
* Fix rubocop offensesTomasz Maczukin2017-03-021-1/+1
|
* Add jobs requesting APITomasz Maczukin2017-03-021-0/+28
|
* Rename API::Ci to API::Runnerfeature/runners-v4-apiTomasz Maczukin2017-02-161-0/+23