• 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

          ashley stovall created issue -

          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  
          Denis Saponenko made changes -
          Component/s New: pipeline [ 21692 ]
          Andrew Bayer made changes -
          Assignee Original: Denis Saponenko [ vaimr ]
          Andrew Bayer made changes -
          Component/s New: workflow-basic-steps-plugin [ 21712 ]
          Component/s Original: pipeline [ 21692 ]
          Component/s Original: pipeline-multibranch-defaults-plugin [ 21926 ]

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

              Created:
              Updated: