I suggest using the Kubernetes Jenkins plugin that can do exactly what you want using pipeline
https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pipeline-support
Hi Carlos,
I'm trying to understand how composing multiple containers (one with the JNLP slave, another with Maven) in a Pod Template but I can't get the example pipeline to work. The Jenkins logs show that it's "Waiting for slave to connect", and after 100 tries it gives up, deletes the Pod and creates a new one ad infinitum.
Using "kubectl get pods" I can see that the 2 containers have been created and the Pod is running, but it won't connect to the Jenkins master.
The example pipeline uses a maven and a golang images, but none of them knows how to connect to Jenkins using JNLP. The README says that "The jnlp agent image used can be customized by adding it to the template", but it seems that I need to include a JNLP image in the pod template so that it can talk to Jenkins.
On Wednesday, November 23, 2016 at 7:12:24 PM UTC-2, Carlos Sanchez wrote:You can't just jump from a container to another, can only share through network or shared filesystem.
http://kubernetes.io/docs/user-guide/pods/I suggest using the Kubernetes Jenkins plugin that can do exactly what you want using pipeline
https://github.com/jenkinsci/kubernetes-plugin/blob/master/README.md#pipeline-support
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/khpG2-6NBNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9ff5076f-b06e-428f-a43e-5c9d2e4b0094%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Carlos,This Plugin clearly doesn't work.... Please provide a detailed how to at least rather on how this works.This is turning out to be a complete waste of time.
I'm also interested in this.. Does this plugin support having a Jenkins master running somewhere else and the slaves in the k8s cluster?
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/khpG2-6NBNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/54962d38-41b7-40f3-ad2e-e01576a21875%40googlegroups.com.