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

SCP Task to disable Ant default excludes

    XMLWordPrintable

Details

    • 0
    • 2
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      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

      1. Create a Plan and configure the Plan to checkout code from a VCS repository.
      2. Create two tasks inside the Plan:
        • a) Source Code Checkout
        • b) SCP Task
      3. Configure the SCP Task to copy all the files from your build working directory over to another directory.
      4. 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            brosa Bruno Rosa
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: