| ... | @@ -15,12 +15,14 @@ module API |
... | @@ -15,12 +15,14 @@ module API |
|
|
optional :info, type: Hash, desc: %q(Runner's metadata)
|
|
optional :info, type: Hash, desc: %q(Runner's metadata)
|
|
|
optional :active, type: Boolean, desc: 'Should Runner be active'
|
|
optional :active, type: Boolean, desc: 'Should Runner be active'
|
|
|
optional :locked, type: Boolean, desc: 'Should Runner be locked for current project'
|
|
optional :locked, type: Boolean, desc: 'Should Runner be locked for current project'
|
|
|
|
optional :access_level, type: String, values: Ci::Runner.access_levels.keys,
|
|
|
|
desc: 'The access_level of the runner'
|
|
|
optional :run_untagged, type: Boolean, desc: 'Should Runner handle untagged jobs'
|
|
optional :run_untagged, type: Boolean, desc: 'Should Runner handle untagged jobs'
|
|
|
optional :tag_list, type: Array[String], desc: %q(List of Runner's tags)
|
|
optional :tag_list, type: Array[String], desc: %q(List of Runner's tags)
|
|
|
optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job'
|
|
optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job'
|
|
|
end
|
|
end
|
|
|
post '/' do
|
|
post '/' do
|
|
|
attributes = attributes_for_keys([:description, :active, :locked, :run_untagged, :tag_list, :maximum_timeout])
|
|
attributes = attributes_for_keys([:description, :active, :locked, :run_untagged, :tag_list, :access_level, :maximum_timeout])
|
|
|
.merge(get_runner_details_from_request)
|
|
.merge(get_runner_details_from_request)
|
|
|
|
|
|
|
|
attributes =
|
|
attributes =
|
| ... | |
... | |
| ... | | ... | |