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

SCP Task will only copy the first file if multiple files are assigned in a CSV Local path input and Ant patterns are disabled

    XMLWordPrintable

Details

    Description

      Problem

      Bamboo will copy only the first file from a comma-separated list assigned to the Local path field in an SCP task in case Use Ant patterns to select files is disabled.

      Environment

      • Bamboo DC
      • SCP Task

      Steps to Reproduce

      1. In a Job, add a script task to create three files file1.txt, file2.txt, file3.txt
      2. Add a SCP Task
      3. Under Artifact choose Local files
      4. On Local path add:
        file1.txt, file2.txt, file3.txt
        
      5. Make sure to disable "Use Ant patterns to select files"
      6. Save the Task and run the plan

      Expected Results

      All three files should be copied

      Actual Results

      Only the first file is copied

      Workaround

      1. Create an SCP task for each file
        or
      2. On the SCP task properties, select "Use Ant patterns to select files"
        or
      3. Modify the Local path list so it will not contain leading or trailing whitespace between each file or directory. For example:
        file1.txt,file2.txt,file3.txt,file 4 with whitespace.txt,file5.txt,directory1
        

      Notes

      Build-in documentation states:

      Local path of the files to copy. Must be relative to your Bamboo plan's working directory.
      This is a comma separated list of files or directories.

      Which makes the Administrator believe that a CSV input will allow multiple files to be copied.

      Attachments

        Issue Links

          Activity

            People

              73868399605e Eduardo Alvarenga
              73868399605e Eduardo Alvarenga
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: