sous-chefs / jenkins

Development repository for the jenkins cookbook
https://supermarket.chef.io/cookbooks/jenkins
Apache License 2.0
424 stars 635 forks source link

jenkins_windows_slave issue ( certificate issue or sth) #673

Closed gorge34 closed 4 years ago

gorge34 commented 6 years ago

Hi

I try to use jenkins_windows_slave :

jenkins_windows_slave node['hostname'] do
  action :create
  remote_fs 'C:\jenkins'
  user user
  password item['password']
end

before it I set :

  node.override['jenkins']['master']['endpoint'] = "http://jenkinsmasteraddress:port_like_in_jenkins_configuration"
  node.run_state[:jenkins_username] = item['username'] 
  node.run_state[:jenkins_password] = item['password']

port_like_in_jenkins_configuration = TCP port for JNLP agents from security settings

and imported certificates to java keystore and install it in windows.

Jenkins master is in version 2.73.3 and there are plugins like : 'SSH credentials plugin' and ' PAM Authentication plugin '. Java is installed in version 8, build 131.

using Jankins cookbook 5.0.3 I have output :

* jenkins_windows_slave[euplskcdfbcnd] action create[2018-01-17T13:28:31+01:00] INFO: Processing jenkins_windows_slave[euplskcdfbcnd] action create (jenkins_base::windows_agent line 64)
       [2018-01-17T13:28:31+01:00] DEBUG: Providers for generic jenkins_windows_slave resource enabled on node include: [Chef::Provider::JenkinsWindowsSlave]
       [2018-01-17T13:28:31+01:00] DEBUG: Provider for action create on resource jenkins_windows_slave[euplskcdfbcnd] is Chef::Provider::JenkinsWindowsSlave
       [2018-01-17T13:28:31+01:00] DEBUG: Load jenkins_windows_slave[euplskcdfbcnd] slave information
       [2018-01-17T13:29:31+01:00] DEBUG: Jenkins is not accepting requests - Net::OpenTimeout

or when I set port on 8080 I get :

FATAL: OpenSSL::SSL::SSLError: jenkins_windows_slave[euplskcdfbcnd] (jenkins_base::windows_agent line 64) had an error: OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed
github-actions[bot] commented 4 years ago

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] commented 4 years ago

Closing due to inactivity. If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.