Shinya Maeda
61c8093b26
Store metadata checksum for artifacts
2018-04-03 20:42:51 +09:00
Tomasz Maczukin
557c85a79f
Use raw value of maximum_timeout for Runner registration API
2018-03-28 13:58:34 +02:00
Tomasz Maczukin
f5e602ee0f
Rename maximum_job_timeout to maximum_timeout
2018-03-28 13:58:15 +02:00
Tomasz Maczukin
62f053e4e5
Update runner registration API
2018-03-28 13:57:41 +02:00
Tomasz Maczukin
dbd7455583
Use _human_readable for Runner's registration API
2018-03-28 13:57:18 +02:00
Tomasz Maczukin
d633bc8134
Rename job_upper_timeout to maximum_job_timeout
2018-03-28 13:55:46 +02:00
Tomasz Maczukin
7b82f4bab1
Add support for job_upper_timeout in API
2018-03-28 13:55:46 +02:00
Micaël Bergeron
fc6587f1f2
Add proxy_download to perform proxied sending of all files
2018-03-09 09:16:06 -05:00
Micaël Bergeron
6466739e2e
Merge remote-tracking branch 'origin/master' into 40781-os-to-ce
2018-03-08 10:55:47 -05:00
Shinya Maeda
03438886e1
Change column to file_sha256. Add test. Add changelog
2018-03-06 17:16:33 +09:00
Shinya Maeda
a1c612ce2d
Add checksum at runner grape api
2018-03-06 17:02:47 +09:00
Kamil Trzciński
79a5e7fb53
Merge commit '7e424eb852716495073881710e8a8851b4a4cd5a' into object-storage-ee-to-ce-backport
2018-02-28 21:14:25 +01:00
Grzegorz Bizon
b14c484bb1
Merge branch 'use-send-url-for-incompatible-runners' into 'master'
...
Support SendURL for performing indirect download of artifacts if clients does…
See merge request gitlab-org/gitlab-ee!4401
2018-02-28 20:58:56 +01:00
Sean McGivern
a7dae52e9d
Merge branch '4163-move-uploads-to-object-storage' into 'master'
...
Move uploads to object storage
Closes #4163
See merge request gitlab-org/gitlab-ee!3867
2018-02-28 20:58:15 +01:00
Dylan Griffith
b5a5fdf0e3
Persist runner IP address on contact ( #43489 )
2018-02-28 11:54:37 +11:00
Matija Čupić
3366f377c1
Merge branch 'master' into 38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour
2018-02-04 23:38:59 +01:00
Micaël Bergeron
2057a6acde
port of 594e6a0a625^..f74c90f68c6
2018-02-01 12:14:46 -05:00
Matija Čupić
397442a061
Update runner info on all authenticated requests
2018-01-29 17:21:30 +01:00
Kamil Trzcinski
0464c25f60
Store expire_at in ci_job_artifacts
2017-12-03 12:05:23 +01:00
Zeger-Jan van de Weg
61864a5a5b
Rename Artifact to JobArtifact, split metadata out
...
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.
2017-12-03 12:04:48 +01:00
Shinya Maeda
38d9b4d77d
Use script_failure. Add runner_system_failure. Improve spec.
2017-09-05 15:10:34 +09:00
Shinya Maeda
5d50cbfaab
Use unknown_failure for runner
2017-09-05 14:30:28 +09:00
Shinya Maeda
68f6c61cf6
- Allow runner API to pass failure_reason
...
- Fix spec
2017-09-05 14:30:28 +09:00
Shinya Maeda
1d7c039072
Fix enum lists
2017-09-05 14:30:28 +09:00
Shinya Maeda
dcf09d1144
Implement `failure_reason` on `ci_builds`
2017-09-05 14:30:28 +09:00
Sean McGivern
f11049ab91
Merge branch 'api-delete-respect-headers' into 'master'
...
API: Respect the 'If-Unmodified-Since' for delete endpoints
See merge request !9621
2017-08-30 09:56:17 +00:00
Maxim Rydkin
9226804bf3
replace `is_runner_queue_value_latest?` with `runner_queue_value_latest?`
2017-08-29 11:14:41 +03:00
Robert Schilling
e80313f9ee
Conditionally destroy a ressource
2017-08-28 16:40:25 +02:00
Gabriel Mazetto
abb878326c
Rename many path_with_namespace -> full_path
2017-08-01 07:26:58 +02:00
Dmitriy Zaporozhets
6b8ad689da
Update grape gem
...
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>
2017-07-20 16:33:18 +03:00
Rémy Coutable
4cfa5ce4a9
Enable the Style/PreferredHashMethods cop
...
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-02 19:11:26 +02:00
Kamil Trzcinski
6185d12c18
Add missing specs
2017-06-01 16:34:48 +02:00
Kamil Trzcinski
e61f38d79e
Fix data inconsistency issue for old artifacts by moving them to a currently used path
2017-06-01 14:39:48 +02:00
Kamil Trzciński
828d81ee1f
Optimise trace handling code to use streaming instead of full read
2017-04-06 16:20:27 +00:00
Yorick Peterse
d2283f4f0e
Backport API changes needed to fix sticking in EE
...
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.
2017-03-31 13:56:53 +02:00
Tomasz Maczukin
e79ab1115b
Remove legacy Runners support in /api/v4/jobs/request
...
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.
2017-03-20 09:40:36 +01:00
Tomasz Maczukin
bbf4d27a5c
Make runner's veryfication working again
...
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.
2017-03-20 09:40:36 +01:00
Tomasz Maczukin
32b09b8847
Add minor refactoring
2017-03-07 12:30:34 +01:00
Tomasz Maczukin
5c1aa5fb65
Add some fixes and refactoring after review
2017-03-02 17:48:00 +01:00
Tomasz Maczukin
1bbf2c2cd1
Fix rubocop offenses
2017-03-02 17:45:46 +01:00
Tomasz Maczukin
f7d352341e
Add artifacts downloading API
2017-03-02 17:45:46 +01:00
Tomasz Maczukin
c2eb54760d
Add artifacts uploading API
2017-03-02 17:45:46 +01:00
Tomasz Maczukin
2a7f555caf
Add artifacts uploading authorize API
2017-03-02 17:45:46 +01:00
Tomasz Maczukin
7e46db0f5a
Add job patch trace API
2017-03-02 17:45:46 +01:00
Tomasz Maczukin
d5f7e54211
Add job update API
2017-03-02 17:45:46 +01:00
Tomasz Maczukin
65564598d9
Add missing param description for POST /api/v4/jobs/request
2017-03-02 17:45:45 +01:00
Tomasz Maczukin
3eafffcef0
Refactor JobRequest response structure
2017-03-02 17:45:45 +01:00
Tomasz Maczukin
3d26a8d0b6
Add jobs requesting API
2017-03-02 17:45:45 +01:00
Robert Schilling
2b8005ae41
New runner API returns 204
2017-02-28 08:32:40 +01:00
Tomasz Maczukin
e25f26e550
Rename API::Ci to API::Runner
2017-02-16 01:30:46 +01:00