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

Bamboo will not recognise file paths that start with "./"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 9.4.2, 9.2.8, 9.3.6
    • 9.2.7, 9.3.5, 9.4.1
    • SCP and SSH tasks
    • None

    Description

      Problem

      When using file handling (SCP Task for example), Bamboo does not correctly parses file names that have a "./" prefix. For example: "./hello.txt".

      When running the task, it can't locate the files:

      simple 01-Dec-2023 10:19:18 There were no files to upload.
      

      Environment

      • Bamboo Server
      • SCP task

      Steps to Reproduce

      1. Add an SCP task to a Job that would copy a file named "./hello.txt"
      2. Run the Plan and observe in the logs that Bamboo could not find the file even if it existed in the working directory

      Expected Results

      The SCP task should work and report a message such as:

      simple 01-Dec-2023 10:22:27 Uploading '/var/atlassian/application-data/bamboo/local-working-dir/BAM-BOO-JOB/./hello.txt' to '/tmp/'...
      

      Actual Results

      The SCP task can't find the referenced file.

      simple 01-Dec-2023 10:19:18 There were no files to upload.
      

      Workaround

      As the files are referenced from the Bamboo work directory, both regular files and Ant patterns will accept only the standard file name.

      In Bamboo, modify the related tasks and change any references from "./hello.txt", to "hello.txt".

      (replace hello.txt with your file name)

      Notes

      Attachments

        Issue Links

          Activity

            People

              73868399605e Eduardo Alvarenga
              73868399605e Eduardo Alvarenga
              Votes:
              5 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: