Folders from bamboo <local-working-directory>serverSide not cleaned up

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 9.2.18, 9.6.6, 10.1.0, 10.0.1
    • Affects Version/s: 8.2.9, 9.6.4
    • Component/s: Builds
    • None
    • 1
    • Severity 3 - Minor

      Issue Summary

      Bamboo is not cleaning up files from /bamboo-home/local-working-dir/serverSide on few special cases when the build is rerun in middle of failing the same build. 

      This only happens when branch merging is enabled for plan branches and the repository size is large in size, because of this issue Bamboo server contains a large amount of unnecessary files which needs to be manually cleaned up.

      Steps to Reproduce

      1) Add a new repository in Bitbucket which is large in size and add it to the Bamboo linked repositories.

      2) Create a plan in Bamboo and link it to this repository and the default branch, my plan configuration has 2 stages with 1 job and 4 respectively. 

      3) Create a new branch in the Bitbucket repository and create a new plan branch in Bamboo and inside the plan branch enable merging, see below

      4) Run the branch in Bamboo and let it queue up, assuming there is no agent available which can build any of the Jobs for this plan.

      5) Validate if the folder is created at /bamboo-home/local-working-dir/serverSide with the build-key of the whole build and it will contain the checked out source code of the branch.

      6) Now fail the build and while the build is failing click on re run this build.

      Expected Results

      The folder created /bamboo-home/local-working-dir/serverSide should be deleted and the build which is re run should be queued up.

      Actual Results

      The folders are not deleted as the build which was rerun shows status as it did not start. 

       

      Workaround

      Manually delete the folders from location /bamboo-home/local-working-dir/serverSide

        1. screenshot-5.png
          screenshot-5.png
          70 kB
        2. screenshot-4.png
          screenshot-4.png
          8 kB
        3. screenshot-3.png
          screenshot-3.png
          14 kB
        4. screenshot-2.png
          screenshot-2.png
          14 kB
        5. screenshot-1.png
          screenshot-1.png
          64 kB

              Assignee:
              Bruno Benvenuti
              Reporter:
              Shashank Kumar
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: