Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Utilising Ant copy pattern for multiple file types


Hi all,

I am looking to building a Bamboo artifact using the Ant copy pattern based on two file types. For argument sake, let's say I want all '.cpp' and '.xml' files from all directories and subdirectories (in practicality, I want more files but I'll keep it simple for the discussion here). I can't seem to combine these two patterns together: '**/*.cpp' and '**/*.xml'. At the moment, I am using with: '**/*', which copies unwanted files. 

Also, on a separate note, is there a way to include the '.git' folder in the Ant copy pattern on Bamboo. I see that in the Ant documentation I can remove excludes but would it apply to Bamboo and if so how? 


1 answer

1 vote

Hello @Nadesh Ramanathan,

Welcome to Atlassian Community!

Multiple file patterns for artifact transfer are available on Bamboo 9.0+ releases. You can specify multiple patterns separated by a comma.

Apache Ant will exclude a series of patterns by default, including ".git" folders. This is documented on the following page:

To copy the ".git" folder as an artifact, add a script task at the end of the Job and move it from ".git" -> "git" and then use a pattern such as "**/git/**"

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

--please don't forget to Accept the answer if the reply is helpful-- 

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events