Details
-
Bug
-
Resolution: Fixed
-
Medium
-
9.2.7, 9.3.5, 9.4.1
-
None
-
1
-
Severity 3 - Minor
-
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
- Add an SCP task to a Job that would copy a file named "./hello.txt"
- 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
- mentioned in
-
Page Loading...