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

Export fails if there is an artifact folder named as <NAME>.exe

    XMLWordPrintable

Details

    Description

      Problem Description
      Bamboo will fail to generate an export or backup if there is an artifact FOLDER with the pattern "<NAME>.EXE" (either lower or upercase). This will happen if you check Export artifacts during export. The export will fail with the following error.

      2018-03-23 15:20:36,050 ERROR [http-nio-8085-exec-7] [Export] java.io.IOException: /Users/dsantos/atlassian/bamboo/6.4.0/home/exports/export_atlassianbamboo_60404_20180323_9.zip/artifacts/plan-5275661/shared/build-00007/a.exe (not a directory)
      java.io.IOException: /Users/dsantos/atlassian/bamboo/6.4.0/home/exports/export_atlassianbamboo_60404_20180323_9.zip/artifacts/plan-5275661/shared/build-00007/a.exe (not a directory)
              at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:158)
              at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169)
              at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169)
              at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169)
              at de.schlichtherle.truezip.file.TBIO.cp_r0(TBIO.java:169)
              at de.schlichtherle.truezip.file.TBIO.cp_r(TBIO.java:138)
              at de.schlichtherle.truezip.file.TFile.cp_rp(TFile.java:3317)
              at com.atlassian.bamboo.migration.XmlMigrator.exportResultFiles(XmlMigrator.java:510)

      Steps to replicate

      1. Create an artifact definition that produces a folder with the name name.exe
      2. Run the plan and make sure it's successful and the artifact exists.
      3. Run the export of Bamboo backup and make sure Export artifacts is checked.

      In fact, we just need to have a folder with the name format <NAME>.EXE inside any <Bamboo_Home>/artifacts/plan-XXXXX/shared/build-XXXXX/ folder to reproduce this problem.

      Workaround

      1. Change the artifact names to <NAME>_EXE to avoid the problematic patter
      2. Remove any folders of old build results matching the regex .*\.exe

      Attachments

        Issue Links

          Activity

            People

              mgardias Marcin Gardias
              dsantos Daniel Santos
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: