Wildcards

Skip to end of metadata
Go to start of metadata
You are viewing documentation of TeamCity 4.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version.
Search

Searching TeamCity 4.x Documentation

Table of Contents

TeamCity supports wildcards in different configuration options.

Ant-like wildcard are:

Wildcard Description
* matches any text in the file or directory name excluding directory separator ("/" or "\")
? matches single symbol in the file or directory name excluding directory separator
** matches any symbols including the directory separator

You can read more on Ant wildcards in the corresponding section of Ant documentation.

Examples
For a directory structure:

\a
 -\b
   -\c
     -file1.txt
   -file2.txt
   -file3.log
 -\d
   -file4.log
 -file5.log
Description Pattern Matching files
all the files **
\a
 -\b
   -\c
     -file1.txt
   -file2.txt
   -file3.log
 -\d
   -file4.log
 -file5.log
all log files **/*.log
\a
 -\b
   -file3.log
 -\d
   -file4.log
 -file5.log
all files in a/b directory incl. those in subfolders a/b/**
\b
 -\c
   -file1.txt
 -file2.txt
 -file3.log
files directly in a/b directory a/b/*
\b
 -file2.txt
 -file3.log

Labels:

Enter labels to add to this page:
Wait Image 
Looking for a label? Just start typing.