TeamCity REST API Reference 2024.07 Help

CompatibilityPolicy

Represents the policy that limit agents to building specific build configurations.

Properties

policy

Returns whether the agent can run only builds of specific build configurations. Available values:

  • any — agents with this policy can run builds of any build configurations.

  • selected — agents with this policy can only run builds of configurations stored in the buildTypes collection.

buildTypes

Returns the list of build configurations whose builds can be processed by agents that follow this policy. If the policy property is any, this property returns null.

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<compatibilityPolicy policy="string"> <buildTypes count="123" href="string" nextHref="string" prevHref="string"> <buildType>[[[buildType...|buildtype.html]]]</buildType> </buildTypes> </compatibilityPolicy>
{ "buildTypes" : { "buildType" : [ "[[[buildType...|buildtype.html]]]" ], "count" : 3, "prevHref" : "prevHref", "href" : "href", "nextHref" : "nextHref" }, "policy" : "policy" }
Last modified: 21 August 2024