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

Empty stashes are not created on S3

    Details

    • Similar Issues:

      Description

       If you stash nothing with the setting "allowEmpty:true", the stash file will not be created, with the default artifact manager the stash file is created

      node { 
        sh "touch some-file" 
        stash name:'my-stash', allowEmpty:true, includes: 'some-file' 
        stash name:'my-empty-stash', allowEmpty:true, includes: 'some-missing-file' 
        unstash 'my-stash' 
        unstash 'my-empty-stash' 
      }
      
      [Pipeline] {
      [Pipeline] sh
      [stash-unstash] Running shell script
      + touch some-file
      [Pipeline] stash
      Stashed 1 file(s) to https://my-bucket.s3.amazonaws.com/jenkins/stash-unstash/2/stashes/my-stash.tgz
      [Pipeline] stash
      Stashed 0 file(s) to https://my-bucket.s3.amazonaws.com/jenkins/stash-unstash/2/stashes/my-empty-stash.tgz
      [Pipeline] unstash
      Unstashed file(s) from https://my-bucket.s3.amazonaws.com/jenkins/stash-unstash/2/stashes/my-stash.tgz
      [Pipeline] unstash
      [Pipeline] }
      [Pipeline] // node
      [Pipeline] End of Pipeline
      [BFA] Scanning build for known causes...
      [BFA] No failure causes found
      [BFA] Done. 0s
      ERROR: No such saved stash ‘my-empty-stash’ found at my-bucket/jenkins/stash-unstash/2/stashes/my-empty-stash.tgz
      Finished: FAILURE
      

        Attachments

          Activity

          ifernandezcalvo Ivan Fernandez Calvo created issue -
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Field Original Value New Value
          Priority Minor [ 4 ] Major [ 3 ]
          vlatombe Vincent Latombe made changes -
          Summary Empty files are not stashed Empty stashes are not created on s3
          ifernandezcalvo Ivan Fernandez Calvo made changes -
          Summary Empty stashes are not created on s3 Empty stashes are not created on S3
          cloudbees CloudBees Inc. made changes -
          Remote Link This issue links to "CloudBees Internal ARC-467 (Web Link)" [ 21145 ]
          jglick Jesse Glick made changes -
          Assignee Jesse Glick [ jglick ]
          jglick Jesse Glick made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          jglick Jesse Glick made changes -
          Remote Link This issue links to "workflow-api PR 75 (Web Link)" [ 21173 ]
          jglick Jesse Glick made changes -
          Remote Link This issue links to "artifact-manager-s3 PR 71 (Web Link)" [ 21174 ]
          jglick Jesse Glick made changes -
          Status In Progress [ 3 ] In Review [ 10005 ]
          jglick Jesse Glick made changes -
          Status In Review [ 10005 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          jglick Jesse Glick made changes -
          Remote Link This issue links to "artifact-manager-s3 PR 73 (Web Link)" [ 21227 ]

            People

            • Assignee:
              jglick Jesse Glick
              Reporter:
              ifernandezcalvo Ivan Fernandez Calvo
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: