On Fri, Aug 24, 2018 at 10:42 AM Tristan FAURE <faure.tris...@gmail.com> wrote:
> Hello > > in my jenkins configuration admin GUI I have this volume definition : > > Volumes > - Claim Name = nfsdata > Read Only = true > Mount path = /etc/ssl/certs > > In scripted pipeline everything works perfectly > > In declarative pipeline : > pipeline { > agent { > kubernetes { > label "${jedi}" > yaml """ > spec: > containers: > - name: maven > image: maven:3-jdk-8 > command: > - cat > tty: true > """ > > When i check the generated yaml in kubernetes, the volume is mounted only > on the jnlp container and not the maven one > how do you define that this pipeline uses the volume defined in the GUI? using Defaults Provider Template Name? > > I need to write this to make it work and I don't really like this : > yaml """ > spec: > containers: > - name: maven > image: docker-ccsl-virtual.repo.aes.alcatel.fr:8443/maven:3-jdk-8 > command: > - cat > tty: true > volumeMounts: > - mountPath: /etc/ssl/certs > name: volume-0 > readOnly : true > """ > > Thank you in advance > > Tristan FAURE > > -- > 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 jenkinsci-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/fc9b3c60-aa86-491e-acf9-d9c6b09ecc06%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/fc9b3c60-aa86-491e-acf9-d9c6b09ecc06%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 jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6M1tx684wFzNoHqiLZhHoySvM2V6JvcO%3DTz%3D7gUNkFrXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.