-
Suggestion
-
Resolution: Timed out
-
None
-
0
-
2
-
Summary
The SCP Task in Bamboo doesn't copy the following folders and files to the remote path:
As of Ant 1.8.1 they are: **/*~ **/#*# **/.#* **/%*% **/._* **/CVS **/CVS/** **/.cvsignore **/SCCS **/SCCS/** **/vssver.scc **/.svn **/.svn/** **/.DS_Store Ant 1.8.2 adds the following default excludes: **/.git **/.git/** **/.gitattributes **/.gitignore **/.gitmodules **/.hg **/.hg/** **/.hgignore **/.hgsub **/.hgsubstate **/.hgtags **/.bzr **/.bzr/**
Steps to Reproduce
- Create a Plan and configure the Plan to checkout code from a VCS repository.
- Create two tasks inside the Plan:
- a) Source Code Checkout
- b) SCP Task
- Configure the SCP Task to copy all the files from your build working directory over to another directory.
- Select the Use Ant patterns to select files option.
Expected Results
The build will checkout code from your VCS repository to the build working directory and the SCP Task will copy all the files over to the new location specified in the task.
Actual Results
The SCP Task doesn't copy all files over. This is happening because there are a set of definitions that are excluded by default from all directory-based tasks when using the Ant patterns.
Possible Solution
It is possible to disable the default excludes with the defaultexcludes="no" attribute according to the Ant documentation.
Workaround
Use a Script Task in Bamboo to manually copy the files and folders over to the remote path.