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

Stash and unstash fail for files with Unicode filenames

XMLWordPrintable

      A typo in our source code broke all pipelines that stash/unstash the built workspace. I figured out that it's because of a class file containing a non-ASCII letter (a dot-less "i"  in the filename "Provıder.class").

      Two pipelines to reproduce (output attached):

      node('slave') {
          stage('stash') {
              sh 'touch Provıder.class'
              stash name: 'foo', includes: '*.class'
          }
      }
      

      → Fails to stash from slave.

      node('master') {
          stage('stash') {
              sh 'touch Provıder.class'
              stash name: 'foo', includes: '*.class'
          }
      
          node('slave') {
              stage('unstash') {
                  unstash 'foo'
              }
          }
      }
      

      → Stash on master works, fails to unstash on slave.

      I'm not sure if remoting is involved, but it stashes and unstashes fine on the master node, however that could also be due to implementation details for the master node.

        1. stash-fails.txt
          3 kB
          Franz Kaefer
        2. unstash-fails.txt
          4 kB
          Franz Kaefer

            Unassigned Unassigned
            fkaefer Franz Kaefer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: