Query
query BuildRunAgents($buildId: ID!) {
buildRunAgents(buildId: $buildId) {
agent {
id
name
hostname
version
osVersion
architecture
}
isBuildAgent
available
unavailableReason
}
}Variables
{
"buildId": "id"
}Response
{
"data": {
"buildRunAgents": [
{
"agent": {
"id": "id",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string"
},
"isBuildAgent": true,
"available": true,
"unavailableReason": "OFFLINE"
}
]
}
}Queries
buildRunAgents
Returns agents that can inspect destinations and run a completed build.
QUERY
buildRunAgents(buildId: ID!): [BuildRunAgent!]!Arguments
buildId
ID!
required
Identifier of the build.
Returns
[BuildRunAgent!]!
agent
The enrolled agent represented by this option.
isBuildAgent
Boolean!
Whether this agent produced the build.
available
Boolean!
Whether the agent can currently inspect destinations and accept this build.
unavailableReason
Why this agent cannot be selected, or null when it is available.
Query
query BuildRunAgents($buildId: ID!) {
buildRunAgents(buildId: $buildId) {
agent {
id
name
hostname
version
osVersion
architecture
}
isBuildAgent
available
unavailableReason
}
}Variables
{
"buildId": "id"
}Response
{
"data": {
"buildRunAgents": [
{
"agent": {
"id": "id",
"name": "string",
"hostname": "string",
"version": "string",
"osVersion": "string",
"architecture": "string"
},
"isBuildAgent": true,
"available": true,
"unavailableReason": "OFFLINE"
}
]
}
}