Azure DevOps Pipelines Trigger

Azure DevOps Pipelines Trigger

Certified

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.

yaml
type: io.kestra.plugin.azure.devops.pipelines.Trigger

React when an Azure DevOps pipeline run completes

yaml
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

Azure DevOps organization

The name of the Azure DevOps organization or Azure DevOps Server collection.

Pipeline ID

The ID of the pipeline to monitor.

Azure DevOps project

The name or ID of the Azure DevOps project containing the pipeline.

Defaultfalse

Specifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.

Defaulthttps://dev.azure.com

Base 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.

Azure client ID

Client ID of the Azure service principal.

Azure client secret

Client secret of the Azure service principal.

DefaultPT1M
Formatduration

Polling interval

Interval between polling checks. Defaults to PT1M.

Default25

Maximum runs to inspect

Maximum number of recent runs to inspect per polling interval (between 1 and 1000). Defaults to 25.

DefaultCREATE
Possible Values
CREATEUPDATECREATE_OR_UPDATE

State change mode

Stateful trigger change mode used for observed pipeline runs. Defaults to CREATE.

PEM certificate

PEM certificate content for certificate-based authentication.

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.

SubTypestring

Results filter

Run results that should trigger executions (e.g. succeeded, failed). If omitted, all completed runs trigger executions.

State key

Custom key used to store observed run watermarks in the KV store.

State TTL

How long observed pipeline run state is retained in the KV store.

SubTypestring
Possible Values
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTED

List of execution states after which a trigger should be stopped (a.k.a. disabled).

Azure tenant ID

Azure Entra tenant ID used for service principal authentication.

Defaulttrue

A 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.

Run ID

The unique identifier of the primary triggered pipeline run.

Run name

The name or build number of the primary triggered pipeline run.

Run result

The outcome of the primary triggered pipeline run (e.g. succeeded, failed).

Pipeline runs

All newly completed pipeline runs observed in this polling cycle.

Definitions
createdDatestring
Formatdate-time

Creation timestamp

Timestamp when the pipeline run was created.

finishedDatestring
Formatdate-time

Finish timestamp

Timestamp when the pipeline run finished executing.

idinteger

Run ID

The unique identifier of the pipeline run.

namestring

Run name

The name or build number of the pipeline run.

resultstring

Run result

Final outcome of the pipeline run (e.g. succeeded, failed, canceled).

statestring

Run state

Current state of the pipeline run (e.g. inProgress, completed, canceling, notStarted).

urlstring

API URL

REST API URL of the pipeline run resource.

webUrlstring

Web URL

Azure DevOps browser URL to view the pipeline run execution.

Run state

The state of the primary triggered pipeline run (completed).

Total runs

Total number of newly observed completed pipeline runs.

Web URL

Azure DevOps browser URL to view the primary triggered pipeline run.