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]>
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/1479717781.3245735.794287233.6859EEAF%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to