TeamCity On-Premises 2021.2 Help

Requirement Conditions

This page explains conditions used in agent requirements or build step execution requirements.

Condition

Description

Example

equals

Is true if:

  • A value is empty and the specified property exists and its value is an empty string.
    or

  • A value is specified and the property exists with the specified value.

docker.server.osType equals Linux

does not equal

Is true if:

  • A value is empty and the specified property exists and its value is NOT empty.
    or

  • A value is specified and either the property does not exist, or the property exists and its value does not equal the specified value.

system.teamcity.buildType.id does not equal Tests

does not contain

Is true if the specified property either does not exist, or exists and does not contain the specified string.

system.agent.name does not contain _local

  • is more than

  • is not more than

  • is less than

  • is not less than

Work only with numeric values.

build.number is more than 256

  • matches

  • does not match

Is true if the specified property matches / does not match the specified regular expression pattern.

Use <custom_parameter> matches .*(,|^)foo(,|$).* to match all occurrences of foo, foo,bar, bar,foo, and bar,foo,xxx.

  • version is more than

  • version is not more than

  • version is less than

  • version is not less than

Compares versions of a software. Multiple formats are supported including .-delimited, leading zeroes, common suffixes like "beta", "EAP". If the version number contains alphabetic characters, they are compared as well, for instance, 1.1e < 1.1g.

maven version is more than 3.0

Last modified: 26 April 2022