• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • linux/mesos/marathon/docker

      sometimes the unstash command doesnt actually unstash the files and the pipeline fails. if i rerun the pipeline again it works.

      below are the screen caps of the directory listing for my job, and the failure message i get.

      please let me know what else you would like to see

          [JENKINS-41931] unstash fails transiently

          Unfortunately, on synthetic examples like:

           

          def func() {
              node('builder-7') {
                  unstash 'test'
                  sh 'ls'
                  sh 'ls test'
              }
          }
          
          node('builder-6_jcp') {
              sh 'mkdir -p test'
              sh 'echo test > test/sub.log'
              sh 'echo test > main.log'
              sh 'ls'
              stash name: 'test', includes: "test/*.log"
              sh 'ls'
              sh 'rm -rf *'
          }
          
          func()
          

          the problem could not be repeated

           

          Denis Saponenko added a comment - Unfortunately, on synthetic examples like:   def func() { node( 'builder-7' ) { unstash 'test' sh 'ls' sh 'ls test' } } node( 'builder-6_jcp' ) { sh 'mkdir -p test' sh 'echo test > test/sub.log' sh 'echo test > main.log' sh 'ls' stash name: 'test' , includes: "test/*.log" sh 'ls' sh 'rm -rf *' } func() the problem could not be repeated  

            Unassigned Unassigned
            plainsane ashley stovall
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: