Closed dkiser closed 7 years ago
In order to support authenticated Jenkins URL's, please add username and password options to the functions below throughout the plugin.
def jenkins @jenkins ||= JenkinsApi::Client.new(server_url: config[:url], log_level: 3) end
https://github.com/arangamani/jenkins_api_client suggest username and password args as so:
username
password
@client = JenkinsApi::Client.new(:server_ip => '0.0.0.0', :username => 'somename', :password => 'secret password')
This would be a nice addition. I'd take a PR adding it.
Just submitted a PR for this if you want to use it.
https://github.com/sensu-plugins/sensu-plugins-jenkins/pull/15
In order to support authenticated Jenkins URL's, please add username and password options to the functions below throughout the plugin.
https://github.com/arangamani/jenkins_api_client suggest
username
andpassword
args as so: