Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-54677

Switching container does not switch filesystem

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • kubernetes-plugin
    • None

      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`.

            Unassigned Unassigned
            abergmeier Andreas Bergmeier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: