summaryrefslogtreecommitdiff
path: root/lib/api/runner.rb
Commit message (Collapse)AuthorAgeFilesLines
* Change column to file_sha256. Add test. Add changelogShinya Maeda2018-03-061-2/+2
|
* Add checksum at runner grape apiShinya Maeda2018-03-061-1/+2
|
* Persist runner IP address on contact (#43489)Dylan Griffith2018-02-281-2/+2
|
* Merge branch 'master' into ↵Matija Čupić2018-02-041-3/+3
|\ | | | | | | 38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour
| * port of 594e6a0a625^..f74c90f68c6Micaël Bergeron2018-02-011-3/+3
| |
* | Update runner info on all authenticated requestsMatija Čupić2018-01-291-1/+0
|/
* Store expire_at in ci_job_artifactsKamil Trzcinski2017-12-031-4/+5
|
* Rename Artifact to JobArtifact, split metadata outZeger-Jan van de Weg2017-12-031-3/+4
| | | | | | | | | Two things at ones, as there was no clean way to seperate the commit and give me feedback from the tests. But the model Artifact is now JobArtifact, and the table does not have a type anymore, but the metadata is now its own model: Ci::JobArtifactMetadata.
* Use script_failure. Add runner_system_failure. Improve spec.feature/sm/37239-implement-failure_reason-on-ci_buildsShinya Maeda2017-09-051-2/+1
|
* Use unknown_failure for runnerShinya Maeda2017-09-051-5/+2
|
* - Allow runner API to pass failure_reasonShinya Maeda2017-09-051-1/+7
| | | | - Fix spec
* Fix enum listsShinya Maeda2017-09-051-1/+1
|
* Implement `failure_reason` on `ci_builds`Shinya Maeda2017-09-051-1/+1
|
* Merge branch 'api-delete-respect-headers' into 'master'Sean McGivern2017-08-301-2/+4
|\ | | | | | | | | API: Respect the 'If-Unmodified-Since' for delete endpoints See merge request !9621
| * Conditionally destroy a ressourceRobert Schilling2017-08-281-2/+4
| |
* | replace `is_runner_queue_value_latest?` with `runner_queue_value_latest?`Maxim Rydkin2017-08-291-1/+1
|/
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-2/+2
|
* Update grape gemdz-update-grapeDmitriy Zaporozhets2017-07-201-0/+1
| | | | | | | | New version of the gem returns 200 status code on delete with content instead of 204 so we explicitly set status code to keep existing behavior Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Enable the Style/PreferredHashMethods coprc/enable-PreferredHashMethods-copRémy Coutable2017-06-021-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add missing specsKamil Trzcinski2017-06-011-10/+1
|
* Fix data inconsistency issue for old artifacts by moving them to a currently ↵Kamil Trzcinski2017-06-011-1/+1
| | | | used path
* Optimise trace handling code to use streaming instead of full readKamil Trzciński2017-04-061-7/+5
|
* Backport API changes needed to fix sticking in EEbackport-sticking-api-helper-changesYorick Peterse2017-03-311-10/+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-3/+6
| | | | | | | | | | | | | | | 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.
* Make runner's veryfication working againTomasz Maczukin2017-03-201-0/+11
| | | | | | | | | | | | | | | | In APIv1 we were using UpdateJob to verify if the runner exists. It was the only method that was using Runner's token and used in special way had no side effects (like scheduling a new job or unregisterring a Runner). In APIv4 we've change UpdateJob to use job's token as authentication credentials, and that way we've removed the only endpoint that could be used to verify if the Runner with a certain token exists in target GitLab installation. This commit adds `POST /api/v4/runners/verify` endpoint whose only responsibility is to respond if Runner with posted credentials exists or not.
* Add minor refactoringfeature/runner-jobs-v4-apiTomasz Maczukin2017-03-071-1/+1
|
* Add some fixes and refactoring after reviewTomasz Maczukin2017-03-021-1/+2
|
* Fix rubocop offensesTomasz Maczukin2017-03-021-9/+7
|
* Add artifacts downloading APITomasz Maczukin2017-03-021-0/+25
|
* Add artifacts uploading APITomasz Maczukin2017-03-021-0/+47
|
* Add artifacts uploading authorize APITomasz Maczukin2017-03-021-0/+30
|
* Add job patch trace APITomasz Maczukin2017-03-021-1/+31
|
* Add job update APITomasz Maczukin2017-03-021-2/+28
|
* Add missing param description for POST /api/v4/jobs/requestTomasz Maczukin2017-03-021-0/+2
|
* Refactor JobRequest response structureTomasz Maczukin2017-03-021-3/+3
|
* Add jobs requesting APITomasz Maczukin2017-03-021-0/+39
|
* New runner API returns 204api-empty-returnRobert Schilling2017-02-281-1/+1
|
* Rename API::Ci to API::Runnerfeature/runners-v4-apiTomasz Maczukin2017-02-161-0/+52