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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Artifacts and glob pattern - confusion between simple and double asterisk / star



I have read the section here but it seems to apply in the "git" context and does not help me. In the artifact contact, if '*' does not match "/", does it mean that 'dist/*' match all files and not directories ? and "dist/**" does match everything files and subfolders ?


So I am confused with simple and double asterisk glob patterns (in particular in artificats context). What are the differences between these examples ?


          - dist/*/folder


          - dist/**/folder


          - dist/*


          - dist/**


Which ones do include hidden files/directories  ?

If I want to "artifact" a folder and all its content, can I just do ? :

          - dist


(Bonus: Is it an "atlassian" glob pattern trick or is it following a standard ? )



1 answer

1 accepted

1 vote
Answer accepted
Linette Atlassian Team Oct 28, 2018

Hi Victor,

I have a basic little example pipeline that might help make things clearer here:

Essentially though:

  • a single asterisk will pick up any files in the folder (including hidden)
  • a double asterisk will pick up both files and directories (including hidden)

You could also use -  dist/*.js to only select .js files as artifacts to pass to the next step.


I hope that helps!

Linette Atlassian Team Oct 28, 2018

oh, and in answer to your questions 1) and 2) the difference is how far through the directory structure you'll go.

the first example (dist/*/folder) could find


but not


Where as dist/**/folder would find


as it keeps going beyond the current directory.


Thank you for your reply, it's well explained and very helpful.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍻🍂Apptoberfest Update: Upcoming Virtual Events 🎉

Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...

124 views 1 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you