@carlos i checked the logs but there is nothing showing in the logs.... jenkins is running outside of the cluster.. so i cant use the jenkins if i run outside the cluster.
On Monday, November 21, 2016 at 12:43:08 AM UTC-8, Sébastien Douche wrote: > > Hi folks, > I try with the kubernetes-ci to create a pod with a container to do some > work (get source code, compile it, etc) and a jnlp container (only used > to connect to the Jenkins server). The goal is to avoid the adding of > the jnlp binary into all my containers. So I tried this: > > ---------------------------------------- > apiVersion: "v1" > kind: "Pod" > metadata: > name: "k8s-slave" > labels: > name: "k8s-slave" > spec: > containers: > - name: "jenkins-slave" > image: "jenkinsci/jnlp-slave" > volumeMounts: > - mountPath: /home/jenkins > name: workspace-volume > env: > - name: "JENKINS_URL" > value: "https://XXX" > - name: "golang" > image: "golang:1.6.3-alpine" > volumeMounts: > - mountPath: /home/jenkins > name: workspace-volume > volumes: > - emptyDir: {} > name: workspace-volume > ---------------------------------------- > > And a trivial job which try to access on the golang container: > > ---------------------------------------- > git clone https://github.com/hashicorp/terraform.git > mkdir -p /go/src/github.com/hashicorp > ln -s `pwd` /go/src/github.com/hashicorp/terraform > cd /go/src/github.com/hashicorp/terraform && make core-dev > ---------------------------------------- > > It doesn't work 'cause the job have access on the jnlp fs and not the > golang one. What is missing to access on the golang container? > > > > Thanks. > > > -- > Sébastien Douche <[email protected] <javascript:>> > Twitter: @sdouche > http://douche.name > -- 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/6ab7ad20-7468-4695-8191-6560fda11d50%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
