TeamCity 2017.1 Help

Wildcards

TeamCity supports wildcards in different configuration options. Ant-like wildcards 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

Last modified: 20 April 2023