[JIRA] (JENKINS-54677) Switching container does not switch filesystem

3 views
Skip to first unread message

abergmeier@gmx.net (JIRA)

unread,
Nov 16, 2018, 1:35:01 PM11/16/18
to jenkinsc...@googlegroups.com
Andreas Bergmeier created an issue
 
Jenkins / Bug JENKINS-54677
Switching container does not switch filesystem
Issue Type: Bug Bug
Assignee: Carlos Sanchez
Components: kubernetes-plugin
Created: 2018-11-16 18:34
Priority: Major Major
Reporter: Andreas Bergmeier

When I do

 

 

container('mycontainer') {
  script {
    def foo = "ls -lah /var"
    echo "${foo}"
 

I get the `/var` of jnlp.

Even when inserting `dir('/var')` there is not behavior change.

When I however do `ls -lah /var` in `mycontainer` (via kubectl), I get the output of `mycontainer`.

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

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Dec 7, 2018, 12:52:01 PM12/7/18
to jenkinsc...@googlegroups.com

kenjins_bits@timothy.fromnz.net (JIRA)

unread,
Mar 6, 2019, 4:09:02 AM3/6/19
to jenkinsc...@googlegroups.com

Why would you expect a different file system?

You're switching container after all, not pod

jglick@cloudbees.com (JIRA)

unread,
Jul 16, 2019, 3:43:24 PM7/16/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
 
Change By: Jesse Glick
Assignee: Carlos Sanchez
Reply all
Reply to author
Forward
0 new messages