
Azure DevOps Pipelines Run
CertifiedTrigger and monitor an Azure DevOps pipeline run
Azure DevOps Pipelines Run
Trigger and monitor an Azure DevOps pipeline run
Dispatches a pipeline run in Azure DevOps. Optionally blocks and polls until the run reaches a terminal state. Supports cancellation on task kill, dynamic template parameters, variables, and branch selection.
type: io.kestra.plugin.azure.devops.pipelines.RunExamples
Trigger an Azure DevOps pipeline and wait for completion
id: run_azure_devops_pipeline
namespace: company.team
tasks:
- id: trigger_pipeline
type: io.kestra.plugin.azure.devops.pipelines.Run
organization: my-org
project: my-project
pipelineId: 42
personalAccessToken: "{{ secret('AZURE_DEVOPS_PAT') }}"
branch: main
templateParameters:
environment: production
wait: true
maxDuration: PT45M
Trigger an Azure DevOps pipeline asynchronously (fire-and-forget)
id: trigger_async_pipeline
namespace: company.team
tasks:
- id: async_run
type: io.kestra.plugin.azure.devops.pipelines.Run
organization: my-org
project: my-project
pipelineId: 42
personalAccessToken: "{{ secret('AZURE_DEVOPS_PAT') }}"
wait: false
Properties
organization *string
Azure DevOps organization
The name of the Azure DevOps organization or Azure DevOps Server collection.
pipelineId *integerstring
Pipeline ID
The unique identifier of the Azure DevOps pipeline to run.
project *string
Azure DevOps project
The name or ID of the Azure DevOps project containing the pipeline.
assets
Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset failure behavior
Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150baseUrl 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.
branch string
Target branch or ref
Branch name (e.g. main, release/1.0) or Git reference to build.
clientId string
Azure client ID
Client ID of the Azure service principal.
clientSecret string
Azure client secret
Client secret of the Azure service principal.
maxDuration string
PT30MMaximum duration
Maximum duration to wait for the pipeline run to reach a terminal state when wait is true. Defaults to PT30M.
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.
pollInterval string
PT5SPoll interval
Interval between status polling requests when wait is enabled. Defaults to PT5S.
templateParameters object
Template parameters
Optional template parameters passed to the pipeline run definition.
tenantId string
Azure tenant ID
Azure Entra tenant ID used for service principal authentication.
variables object
Pipeline variables
Variables passed to the pipeline run. Values can be primitive strings or maps containing a value key.
wait booleanstring
falseWait for completion
Whether to block and poll until the pipeline run finishes. Defaults to false.
Outputs
createdDate string
date-timeCreation timestamp
Timestamp when the pipeline run was created.
finishedDate string
date-timeFinish timestamp
Timestamp when the pipeline run finished executing.
id integer
Run ID
The unique identifier of the pipeline run.
name string
Run name
The name or build number of the pipeline run.
result string
Run result
The outcome result of the pipeline run (e.g. succeeded, failed, canceled).
state string
Run state
The state of the pipeline run (e.g. inProgress, completed, canceling, notStarted).
webUrl string
Web URL
Azure DevOps browser URL to view the pipeline run execution.