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

Add Executor Support for JVM and CLI options #441

Open kbaltrinic opened 8 years ago

kbaltrinic commented 8 years ago

I am using the jenkins_windows_slave resource to add a slave to a master that uses SSL with a cert signed by our internal CA (more or less the same problem as if the master has a self signed cert). The CLI call to the master that happens under the hood is failing and I am looking for a way to invoke the CLI jar with -noCertificateCheck.

The error I am getting is this:

* jenkins_windows_slave[MG20-JENWIN-001] action create
  ================================================================================
  Error executing action `create` on resource 'jenkins_windows_slave[MG20-JENWIN-001]'
  ================================================================================

  OpenSSL::SSL::SSLError
  ----------------------
  SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
kbaltrinic commented 8 years ago

I have updated the subject of this issue because after more carefully exploring the code, it looks like this cannot be done. What is needed is support for some additional executor attributes node['jenkins']['executor']['jvm-options'] and node['jenkins']['executor']['cli-options'] where one could specify a trust store or the -noCertificateCheck option respectively.