summaryrefslogtreecommitdiff
path: root/lib/api/ci/runner.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-14 15:09:57 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-14 15:09:57 +0000
commitb689f371350fbf1b71f266764ee018befc9b91f7 (patch)
tree7de1d3ab26d3cae0ac2a7a8ccd8302fcdaac5534 /lib/api/ci/runner.rb
parent0b194c4854f312e36616fccf7c610cb2b0ec6957 (diff)
downloadgitlab-ce-b689f371350fbf1b71f266764ee018befc9b91f7.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/ci/runner.rb')
-rw-r--r--lib/api/ci/runner.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/api/ci/runner.rb b/lib/api/ci/runner.rb
index 63923b02146..0bac6fe2054 100644
--- a/lib/api/ci/runner.rb
+++ b/lib/api/ci/runner.rb
@@ -11,7 +11,7 @@ module API
resource :runners do
desc 'Registers a new Runner' do
- success Entities::RunnerRegistrationDetails
+ success Entities::Ci::RunnerRegistrationDetails
http_codes [[201, 'Runner was created'], [403, 'Forbidden']]
end
params do
@@ -47,7 +47,7 @@ module API
@runner = ::Ci::Runner.create(attributes)
if @runner.persisted?
- present @runner, with: Entities::RunnerRegistrationDetails
+ present @runner, with: Entities::Ci::RunnerRegistrationDetails
else
render_validation_error!(@runner)
end
@@ -82,7 +82,7 @@ module API
before { set_application_context }
desc 'Request a job' do
- success Entities::JobRequest::Response
+ success Entities::Ci::JobRequest::Response
http_codes [[201, 'Job was scheduled'],
[204, 'No job for Runner'],
[403, 'Forbidden']]
@@ -267,7 +267,7 @@ module API
end
desc 'Upload artifacts for job' do
- success Entities::JobRequest::Response
+ success Entities::Ci::JobRequest::Response
http_codes [[201, 'Artifact uploaded'],
[400, 'Bad request'],
[403, 'Forbidden'],