TeamCity 2020.2 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

See the pattern examples for the following file structure inside the current directory:

\a -\b -\c -file1.txt -file2.txt -file3.log -\d -file4.log -file5.log

Examples:

Description

Pattern

Matching files

all files inside the current directory

**

\a -\b -\c -file1.txt -file2.txt -file3.log -\d -file4.log -file5.log

all log files inside the current directory

**/*.log

\a -\b -file3.log -\d -file4.log -file5.log

all files inside the a/b directory including those in subdirectories

a/b/**

\b -\c -file1.txt -file2.txt -file3.log

all files inside the a/b directory

a/b/*

\b -file2.txt -file3.log
Last modified: 23 July 2020