
Azure DevOps Pipelines Trigger
CertifiedTrigger flows on completed Azure DevOps pipeline runs
Azure DevOps Pipelines Trigger
Trigger flows on completed Azure DevOps pipeline runs
Periodically polls an Azure DevOps pipeline and starts an execution for newly observed completed runs. Maintains an exactly-once watermark in Kestra's namespace KV store. On the initial poll, existing historical runs are recorded without firing to prevent re-executing past builds.
type: io.kestra.plugin.azure.devops.pipelines.TriggerExamples
React when an Azure DevOps pipeline run completes
id: azure_devops_run_completed
namespace: company.team
triggers:
- id: on_run_completed
type: io.kestra.plugin.azure.devops.pipelines.Trigger
organization: my-org
project: my-project
pipelineId: 42
personalAccessToken: "{{ secret('AZURE_DEVOPS_PAT') }}"
interval: PT1M
tasks:
- id: handle_event
type: io.kestra.plugin.core.log.Log
message: "Run {{ trigger.id }} completed with {{ trigger.result }}"
Properties
organization *string
Azure DevOps organization
The name of the Azure DevOps organization or Azure DevOps Server collection.
pipelineId *integerstring
Pipeline ID
The ID of the pipeline to monitor.
project *string
Azure DevOps project
The name or ID of the Azure DevOps project containing the pipeline.
allowConcurrent boolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
baseUrl string
https://dev.azure.comBase URL
Base URL of the Azure DevOps instance. Defaults to https://dev.azure.com.
Configure this property when connecting to an on-premises Azure DevOps Server.
clientId string
Azure client ID
Client ID of the Azure service principal.
clientSecret string
Azure client secret
Client secret of the Azure service principal.
interval string
PT1MdurationPolling interval
Interval between polling checks. Defaults to PT1M.
maxRuns integerstring
25Maximum runs to inspect
Maximum number of recent runs to inspect per polling interval (between 1 and 1000). Defaults to 25.
on string
CREATECREATEUPDATECREATE_OR_UPDATEState change mode
Stateful trigger change mode used for observed pipeline runs. Defaults to CREATE.
pemCertificate string
PEM certificate
PEM certificate content for certificate-based authentication.
personalAccessToken string
Personal Access Token
Azure DevOps Personal Access Token (PAT) with Build: Read & execute scope.
If omitted, Microsoft Entra ID service principal credentials must be configured.
results array
Results filter
Run results that should trigger executions (e.g. succeeded, failed). If omitted, all completed runs trigger executions.
stateKey string
State key
Custom key used to store observed run watermarks in the KV store.
stateTtl string
State TTL
How long observed pipeline run state is retained in the KV store.
stopAfter array
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
tenantId string
Azure tenant ID
Azure Entra tenant ID used for service principal authentication.
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
id integer
Run ID
The unique identifier of the primary triggered pipeline run.
name string
Run name
The name or build number of the primary triggered pipeline run.
result string
Run result
The outcome of the primary triggered pipeline run (e.g. succeeded, failed).
runs array
Pipeline runs
All newly completed pipeline runs observed in this polling cycle.
io.kestra.plugin.azure.devops.pipelines.PipelineRun
date-timeCreation timestamp
Timestamp when the pipeline run was created.
date-timeFinish timestamp
Timestamp when the pipeline run finished executing.
Run ID
The unique identifier of the pipeline run.
Run name
The name or build number of the pipeline run.
Run result
Final outcome of the pipeline run (e.g. succeeded, failed, canceled).
Run state
Current state of the pipeline run (e.g. inProgress, completed, canceling, notStarted).
API URL
REST API URL of the pipeline run resource.
Web URL
Azure DevOps browser URL to view the pipeline run execution.
state string
Run state
The state of the primary triggered pipeline run (completed).
total integer
Total runs
Total number of newly observed completed pipeline runs.
webUrl string
Web URL
Azure DevOps browser URL to view the primary triggered pipeline run.