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 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. For more options, visit https://groups.google.com/d/optout.