Build Step Conditions
Collection of build step conditions in a build step
Example. Skip a build step if the build is personal
steps {
script {
conditions {
doesNotEqual("env.BUILD_IS_PERSONAL", "true")
}
scriptContent = "..."
}
}
Example. Run a build step in the default branch only
steps {
script {
conditions {
equals("teamcity.build.branch.is_default", "true")
}
scriptContent = "..."
}
}
Functions
Copies the receiver requirements
Copies the receiver requirements to the specified target
Adds a requirement that the value of the specified parameter does not contain the given value
Adds a requirement that the value of the specified parameter is not equal to the given value
Adds a requirement that the parameter with the specified name does not exist on the agent
Adds a requirement that the value of the specified parameter does not match the given value
Adds a requirement that the value of the specified parameter is less than the given value as a version
Adds a requirement that the value of the specified parameter is greater than the given value as a version
Adds a requirement that the value of the specified parameter is not less than the given value
Adds a requirement that the value of the specified parameter is not less than the given value as a version
Adds a requirement that the value of the specified parameter is not greater than the given value
Adds a requirement that the value of the specified parameter is not greater than the given value as a version
Adds the specified requirement
Adds a requirement that the value of the specified parameter starts with the given value