Re: jenkins slave offline

2018-02-13 Thread Nick Li
Could you share some notes about "configure Java in the jnlp agent docker"? Not sure how to do this. Thanks a lot On Tuesday, February 13, 2018 at 5:34:43 PM UTC+8, Carlos Sanchez wrote: > > > Caused by: javax.net.ssl.SSLHandshakeException: > java.security.cert.CertificateException: No subject

Re: jenkins slave offline

2018-02-13 Thread Nick Li
Thanks Carlos, I will check On Tuesday, February 13, 2018 at 5:34:43 PM UTC+8, Carlos Sanchez wrote: > > > Caused by: javax.net.ssl.SSLHandshakeException: > java.security.cert.CertificateException: No subject alternative names > matching IP address MY_JENKINS_IP found > > If you don't use valid

Re: jenkins slave offline

2018-02-13 Thread Carlos Sanchez
> Caused by: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative names matching IP address MY_JENKINS_IP found If you don't use valid ssl certificates in the jenkins master you'll need to configure Java in the jnlp agent docker, it has nothing to

Re: jenkins slave offline

2018-02-12 Thread Nick Li
jenkins master is running outside of k8s cluster, from the log, looks like slave created in k8s cluster can't connect to jenkins master. What do I need to do? On Tuesday, February 13, 2018 at 3:08:46 PM UTC+8, Nick Li wrote: > > I running jenkins master outside or k8s cluster, > After running

Re: jenkins slave offline

2018-02-12 Thread Nick Li
I running jenkins master outside or k8s cluster, After running the job, I can the pod is created and running, then turned into terminated very soon, Looks ing slave created in k8s cluster can't connect to jenkins master. from JNLP container log I can see Warning: JnlpProtocol3 is disabled by

Re: jenkins slave offline

2018-02-12 Thread Nick Li
Hi Carlos, could you provide more insight? Thanks very much. Some update, I followed https://stackoverflow.com/questions/47870961/jenkins-kubernetes-plugin-not-working, I need to disable https certificate check. then the test connection is successful. Then I created a test pipeline job

Re: jenkins slave offline

2018-02-12 Thread Nick Li
Hi Carlos, How do I debug the connection issue? I was able to connect to k8s cluster using the "Test Connection" Button. But now it just doesn't work. On Friday, February 9, 2018 at 11:20:00 PM UTC+8, Carlos Sanchez wrote: > > that means jenkins can't talk to my-kubernetes-cluster-ip and it

Re: jenkins slave offline

2018-02-09 Thread Carlos Sanchez
that means jenkins can't talk to my-kubernetes-cluster-ip and it wouldn't possibly launch a pod On Fri, Feb 9, 2018 at 11:17 AM, Nick Li wrote: > Hi Carlos, > > In my jenkins kubernetes cloud config section. I have a connection error > now. > I confirmed the

Re: jenkins slave offline

2018-02-09 Thread Nick Li
Hi Carlos, In my jenkins kubernetes cloud config section. I have a connection error now. I confirmed the admin/k8s-password. Error testing connection http://my-kubernetes-cluster-ip: java.net.SocketTimeoutException: connect timed out Thanks On Friday, February 9, 2018 at 5:04:38 PM UTC+8,

Re: jenkins slave offline

2018-02-09 Thread Carlos Sanchez
you can check the steps in https://github.com/jenkinsci/kubernetes-plugin/#debugging to debug On Fri, Feb 9, 2018 at 7:09 AM, Nick Li wrote: > jenkins-slave is offline (suspend) from jenkins webpage. > > My environment: > I have jenkins running on a debian server, created

jenkins slave offline

2018-02-09 Thread Nick Li
jenkins-slave is offline (suspend) from jenkins webpage. My environment: I have jenkins running on a debian server, created a k8s cluster in gcp. installed kubernetes-plugin, configed k8s in jenkins cloud section,(using admin/k8s password.), Then created a test pipeline job using the following