Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-287

Optionally use destination folder as temporary storage during download (instead of default TMPDIR)

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.3.4
    • 1.4
    • Dependency management
    • None

    Description

      when downloading artifacts, BuildR first downloads to a temporary file in the temporary directory (/tmp) and then moves the file to the repository location (Generic#download in transports.rb).

      In many unix systems, /tmp is a separate mount from /. This creates two drawbacks:
      1. if there is not enough space in /tmp, the download fails (this happens to us many times, and during a nightly build)
      2. moving files between partitions is actually copy and delete

      If instead, BuildR will download the file to the directory in the repository and then rename to the actual file name, these problems will be solved.

      The fix is to use
      Tempfile.open File.basename(target), File.dirname(target)

      When creating the temporary file for download

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ittayd Ittay Dror
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: