Icon

You are viewing the documentation of TeamCity 10.x and 2017.x, which is not the most recently released version of TeamCity.
View this page in TeamCity 2018.1 documentation or refer to the listing to choose the documentation corresponding to your TeamCity version.

 
Skip to end of metadata
Go to start of metadata

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
  • No labels