On Tue, Dec 6, 2016, 22:37 Daniel Serodio <[email protected]> wrote:

> 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.
>

You need to get the pod logs to see why it is not connecting. kubectl logs
pods/... jnlp


> 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
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-users/9ff5076f-b06e-428f-a43e-5c9d2e4b0094%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-users/9ff5076f-b06e-428f-a43e-5c9d2e4b0094%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6NPFoFa1MfNE35Pi72C%2Bk7pjgsWVuW4aWKF91MfeRAU9A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to