summaryrefslogtreecommitdiff
path: root/lib/api/helpers/runner.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-07-201-121/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-06-211-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-06-041-2/+16
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-261-0/+7
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-111-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-05-051-0/+4
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-04-141-1/+8
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-03-121-17/+6
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2021-03-031-0/+20
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-09-281-3/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-07-061-5/+0
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-06-261-1/+1
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-05-271-13/+19
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-02-051-1/+5
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-10-081-2/+3
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Avoid calling freeze on already frozen strings in libDinesh Panda2019-09-101-1/+1
|
* CE: Add project download & project export audit eventce-port-4550-add-project-download-export-audit-eventmanojmj2019-07-261-1/+1
| | | | | | This change adds audit events for download of repository and export of project.
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-121-2/+1
| | | | Updates changed method names and fixes spec failures
* Properly handle multiple X-Forwarded-For addresses in runner IPStan Hu2019-02-241-1/+1
| | | | | | | | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/24624 extracted the X-Forwarded-For address directly, but this didn't consider the case where multiple proxies are in the chain. To fix this, we use the Rails implementation to filter trusted proxies, as documented by Grape: https://github.com/ruby-grape/grape#remote-ip Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58103
* Get remote address for runnerSteve Azzopardi2019-01-241-1/+1
| | | | | | | | Check if `X-Forwarded-For` is set before getting the IP of the request, with this the real IP address of the runner is shown if it's behind a proxy. closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53676
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* Change update entrypoint instead of adding new keep-alive oneTomasz Maczukin2018-06-071-0/+5
|
* 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