Skip to main content

Azure Devops

Azure Devops checks for healthy pipeline runs.

apiVersion: canaries.flanksource.com/v1
kind: Canary
metadata:
name: azure-devops
spec:
interval: 300
azureDevops:
- project: Demo1
pipeline: ^windows-
personalAccessToken:
value: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
organization: flanksource
variable:
env: prod
branch:
- main
thresholdMillis: 60000 # 60 seconds
FieldDescriptionSchemeRequired
organizationName of the Azure Organization.stringtrue
projectThe name or ID of the project.stringtrue
pipelineName/Regexp to select the interested pipeline.stringtrue
variablesOnly match those runs that match these variablesmap[string]string
branchOnly match those runs that are run on these branch.[]string
thresholdMillisMaximum duration of a run after which it's considered unhealthy.int
nameName of the check, must be unique within the canarystringYes
descriptionDescription for the checkstring
iconIcon for overwriting default icon on the dashboardstring
labelsLabels for checkmap[string]string
testEvaluate whether a check is healthyExpression
displayExpression to change the formatting of the displayExpression
transformTransform data from a check into multiple individual checksExpression
metricsMetrics to export from[]Metrics
Connection
personalAccessToken , See Creating ADO PAT'sEnvVartrue