class Jenkins2API::Endpoint::Configuration
This class contains all the calls to reach Jenkins2 Configuration
Public Instance Methods
plugin_install(name, short)
click to toggle source
Install a plugin
# File lib/endpoints/configuration.rb, line 14 def plugin_install(name, short) json = { name => { default: true } } @client.api_request( :post, '/pluginManager/install', :raw, json: json.to_json, dynamicLoad: 'Install without restart', :"plugin.#{short}.default" => 'on' ) end
plugin_list()
click to toggle source
list all installed plugin
# File lib/endpoints/configuration.rb, line 9 def plugin_list @client.api_request(:get, '/pluginManager', depth: 10)['plugins'] end
safe_restart()
click to toggle source
Safe-restart jenkins
# File lib/endpoints/configuration.rb, line 27 def safe_restart @client.api_request( :post, '/updateCenter/safeRestart', :raw ) end