[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-08-28 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez started work on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Carlos Sanchez  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-08-28 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Fixed in 1.12.4  
 

  
 
 
 
 

 
 Jenkins /  JENKINS-50879  
 
 
  The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
Change By: 
 Carlos Sanchez  
 
 
Status: 
 In Progress Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-08-23 Thread mikael.barb...@eclipse-foundation.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikaël Barbero commented on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 Javier was on the right track, I sent a PR with a test + a fix https://github.com/jenkinsci/kubernetes-plugin/pull/371  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-08-21 Thread mikael.barb...@eclipse-foundation.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikaël Barbero edited a comment on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 I'm not familiar enough with the code to add a test, but this example reproduces the issue:   { { code:groovy} podTemplate(label: 'mypod',  }}{{   containers: [ }}  {{     containerTemplate(name: 'busybox', image: 'busybox', ttyEnabled: true, command: '/bin/cat'), }}  {{   ], }}  {{   volumes: [ }}  {{     emptyDirVolume(mountPath: '/etc/mount1', memory: true), }}  {{   ]) { }}  {{  }}  {{   node ('mypod') { }}  {{     stage('Run') { }}  {{       container('busybox') { }}  {{         sh """ }}  {{           ls /etc/mount1 }}  {{         """ }}  {{       } }}  {{       container('jnlp') { }}  {{         sh """ }}  {{           ls /etc/mount1 }}  {{         """  } }  {{       } }}  {{     } }}  {{   } }} { { code } }}      The build fails on the second ls in the jnlp container as the folder does not exist:{{+ ls /etc/mount1}}{{ls: /etc/mount1: No such file or directory}}   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-08-21 Thread mikael.barb...@eclipse-foundation.org (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Mikaël Barbero commented on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 I'm not familiar enough with the code to add a test, but this example reproduces the issue: {{podTemplate(label: 'mypod', }}   containers: [     containerTemplate(name: 'busybox', image: 'busybox', ttyEnabled: true, command: '/bin/cat'),   ],   volumes: [     emptyDirVolume(mountPath: '/etc/mount1', memory: true),   ]) { {{  }}   node ('mypod') {     stage('Run') {       container('busybox') {         sh """           ls /etc/mount1         """ {{      }}}       container('jnlp') {         sh """           ls /etc/mount1         """ {{      }}} {{    }}} {{  }}} }   The build fails on the second ls in the jnlp container as the folder does not exist: + ls /etc/mount1 ls: /etc/mount1: No such file or directory    
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.10.1#710002-sha1:6efc396)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-05-28 Thread jenkins...@carlossanchez.eu (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Carlos Sanchez commented on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 If you can submit a test here that checks for what you expect to happen it would be fixed sooner https://github.com/jenkinsci/kubernetes-plugin/blob/master/src/test/java/org/csanchez/jenkins/plugins/kubernetes/pipeline/KubernetesPipelineTest.java#L89  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-05-28 Thread jac...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jacobo Jimenez edited a comment on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 Same  proble  problem  here with "emptyDirVolume".  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-05-28 Thread jac...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jacobo Jimenez commented on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 Same proble here with "emptyDirVolume".  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-04-30 Thread roey.azr...@cybereason.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Roey Azroel commented on  JENKINS-50879  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
 +1  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-50879) The secretVolume is not mounted to "jnlp" container in the multicontainer pod

2018-04-18 Thread ikolomiy...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Igor Kolomiyets created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-50879  
 
 
  The secretVolume is not mounted to "jnlp" container in the multicontainer pod   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Carlos Sanchez  
 
 
Components: 
 kubernetes-plugin  
 
 
Created: 
 2018-04-18 20:38  
 
 
Environment: 
 Jenkins 2.117  Kubernetes Plugin 1.5.2  Kubernetes 1.9.5 or  OpenShift 3.7.0 with Kubernetes 1.7.6  
 
 
Priority: 
  Major  
 
 
Reporter: 
 Igor Kolomiyets  
 

  
 
 
 
 

 
 The Kubernetes Plugin stopped mounting secret volumes to a "jnlp" container after plugin was upgraded to the version 1.5.2. The sample pod template definition: 

 
podTemplate(label: 'jpod', cloud: 'OpenShift', serviceAccount: 'jenkins-sa',
  containers: [
    containerTemplate(name: 'java', image: 'openjdk:alpine', ttyEnabled: true, command: 'cat'),
    containerTemplate(name: 'docker', image: 'docker:dind', ttyEnabled: true, command: 'cat', privileged: true,
        envVars: [secretEnvVar(key: 'DOCKER_USERNAME', secretName: 'docker-hub-credentials', secretKey: 'username'),
    ]),
    containerTemplate(name: 'kubectl', image: 'roffe/kubectl', ttyEnabled: true, command: 'cat'),
    containerTemplate(name: 'sonarqube', image: 'iktech/sonarqube-scanner', ttyEnabled: true, command: 'cat'),
  ],
  volumes: [
    secretVolume(mountPath: '/etc/.ssh', secretName: 'ssh-home'),
    secretVolume(mountPath: '/opt/sonar-scanner/conf', secretName: 'sonar-scanner.properties'),
    secretVolume(secretName: 'docker-hub-credentials', mountPath: '/etc/.secret'),
    hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock')
  ]
) {
.