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: mavenimage: maven:3-jdk-8command:- cattty: 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: mavencommand:- cattty: truevolumeMounts:- mountPath: /etc/ssl/certsname: volume-0readOnly : 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-use...@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.
On Fri, Aug 24, 2018 at 10:42 AM Tristan FAURE <faure....@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: mavenimage: maven:3-jdk-8command:- cattty: true"""
When i check the generated yaml in kubernetes, the volume is mounted only on the jnlp container and not the maven onehow 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: mavencommand:- cattty: truevolumeMounts:- mountPath: /etc/ssl/certsname: volume-0readOnly : 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-use...@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.
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/8RnJ7fozEdo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6M1tx684wFzNoHqiLZhHoySvM2V6JvcO%3DTz%3D7gUNkFrXQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BtQ8YMV8oKt5csyLfWu9zwi3UU2%3DsNk%3DiMy95y2qGoAyqyMFw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CALHFn6N%3Dmbh%3DF7VwfgbR4AY-Y3x%2BqEw0jXrMb_f8jM2NZb1m4Q%40mail.gmail.com.