Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18190

Artifact is not copying empty folders

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • 5.14.4.1
    • Artifacts

    Description

      Summary

      Artifact is not copying empty folders. This behavior is recent since it was working in Bamboo 5.14.1

      Environment

      The Bamboo instances tested were running in Linux

      Steps to Reproduce

      1. Create a plan with two stages
      2. The first stage will do the following:
        1. Create the folder structure with some files:
          mkdir -p a/\{b1,b2,b3}/\{c1,c2}/d
          touch a/b1/test_b1
          touch a/b1/c1/test_c1
          
        2. Create a shared artifact with the following copy pattern:
        3. **/a/**
          
      3. The second stage will just download the artifact

      Expected Results

      The following structure is observed:

      17-Feb-2017 08:34:57	.
      17-Feb-2017 08:34:57	├── a
      17-Feb-2017 08:34:57	│   ├── b1
      17-Feb-2017 08:34:57	│   │   ├── c1
      17-Feb-2017 08:34:57	│   │   │   ├── d
      17-Feb-2017 08:34:57	│   │   │   └── test_c1
      17-Feb-2017 08:34:57	│   │   ├── c2
      17-Feb-2017 08:34:57	│   │   │   └── d
      17-Feb-2017 08:34:57	│   │   └── test_b1
      17-Feb-2017 08:34:57	│   ├── b2
      17-Feb-2017 08:34:57	│   │   ├── c1
      17-Feb-2017 08:34:57	│   │   │   └── d
      17-Feb-2017 08:34:57	│   │   └── c2
      17-Feb-2017 08:34:57	│   │       └── d
      17-Feb-2017 08:34:57	│   └── b3
      17-Feb-2017 08:34:57	│       ├── c1
      17-Feb-2017 08:34:57	│       │   └── d
      17-Feb-2017 08:34:57	│       └── c2
      17-Feb-2017 08:34:57	│           └── d
      

      Actual Results

      Only the folders with content are copied:

      17-Feb-2017 08:34:57	.
      17-Feb-2017 08:34:57	└── a
      17-Feb-2017 08:34:57	    └── b1
      17-Feb-2017 08:34:57	        ├── c1
      17-Feb-2017 08:34:57	        │   └── test_c1
      17-Feb-2017 08:34:57	        └── test_b1
      

      The same test was performed in Bamboo 5.14.1 and the whole structure is returned (Artifact definition covers the empty folders).

      Workaround

      1. Create an artifact with the whole content that should be covered by the artifact
      2. Publish this archive as the artifact
      3. Download the artifact in the next stage
      4. Unzip the artifact archive downloaded

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsantos Daniel Santos
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: