TeamCity Cloud 2024.03 Help

Wildcard Support

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 the 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/**

a └── b ├── c │ └── file1.txt ├── file2.txt └── file3.log

All files inside the a/b directory

a/b/*

a └── b ├── file2.txt └── file3.log

All pathnames containing a b directory

**/b/**

a └── b ├── c │ └── file1.txt ├── file2.txt └── file3.log
Last modified: 21 November 2023