Compatibility
An entity that describes the compatibility relation between an agent and a build configuration.
tip
Data type:
boolean
Example:true
Returns true if the target agent is compatible with the given configuration (that is, can run its builds); otherwise, false.
tip
Data type:
Agent
Example:
The agent whose compatibility data with the buildType
is stored in this object.
tip
Data type:
BuildType
Example:
The build configuration whose compatibility data with the agent
is stored in this object.
tip
Data type:
Requirements
Example:
Returns the list of compatibility issues that makes this agent
incompatible with the buildType
. This list is empty if the compatible
property is true.
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.
<compatibility compatible="true">
<agent authorized="true" connected="true" cpuRank="396" currentAgentVersion="160569" disconnectionComment="Unregistered because of inactivity" enabled="true" host="ip-52-211-39-10.eu-west-1.compute.internal, localhost" href="/app/rest/agents/id:771" id="771" idleSinceTime="20240816T150655+0200" ip="52.211.39.100" javaOutdated="false" lastActivityTime="20240816T151123+0200" locator="string" name="Ubuntu-22.04-Large-i-045902939eae4af1a" outdated="true" pluginsOutdated="false" port="9090" protocol="string" registrationTimestamp="20240816T150655+0200" typeId="661" uptodate="false" version="156364" webUrl="https://example.com/agentDetails.html?id=771&agentTypeId=11389&realAgentName=db-win-2003">
<build>build...</build>
<links>links...</links>
<enabledInfo>enabledInfo...</enabledInfo>
<authorizedInfo>authorizedInfo...</authorizedInfo>
<properties>properties...</properties>
<cloudInstance>cloudInstance...</cloudInstance>
<cloudImage>cloudImage...</cloudImage>
<environment>environment...</environment>
<pool>agentPool...</pool>
<compatibilityPolicy>compatibilityPolicy...</compatibilityPolicy>
<compatibleBuildTypes>buildTypes...</compatibleBuildTypes>
<incompatibleBuildTypes>compatibilities...</incompatibleBuildTypes>
<builds>builds...</builds>
</agent>
<buildType description="string" externalStatusAllowed="true" href="string" id="string" inherited="true" internalId="string" locator="string" name="string" paused="true" projectId="string" projectInternalId="string" projectName="string" templateFlag="true" type="string" uuid="string" webUrl="string">
<links>links...</links>
<project>project...</project>
<templates>buildTypes...</templates>
<template>buildType...</template>
<vcs-root-entries>vcs-root-entries...</vcs-root-entries>
<settings>properties...</settings>
<parameters>properties...</parameters>
<steps>steps...</steps>
<features>features...</features>
<triggers>triggers...</triggers>
<snapshot-dependencies>snapshot-dependencies...</snapshot-dependencies>
<artifact-dependencies>artifact-dependencies...</artifact-dependencies>
<agent-requirements>agent-requirements...</agent-requirements>
<branches>branches...</branches>
<builds>builds...</builds>
<investigations>investigations...</investigations>
<compatibleAgents>agents...</compatibleAgents>
<compatibleCloudImages>cloudImages...</compatibleCloudImages>
<vcsRootInstances>vcs-root-instances...</vcsRootInstances>
<pauseComment>comment...</pauseComment>
</buildType>
<unmetRequirements description="Unmet requirements: 	Parameter 'teamcity.agent.name' equals 'Custom'; 	Parameter 'teamcity.agent.jvm.os.name' equals 'Ubuntu'"/>
</compatibility>
{
"compatible" : true,
"agent" : "agent...",
"buildType" : "buildType...",
"unmetRequirements" : "requirements..."
}
Thanks for your feedback!