TeamCity 2019.1 Help

Wildcards

TeamCity supports wildcards in different configuration options.

Antlike Wildcards

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 the a/b directory

a/b/*

\b -file2.txt -file3.log