Azure DevOps Pipelines Create

Azure DevOps Pipelines Create

Certified

Create an Azure DevOps pipeline definition

Creates a new pipeline definition in an Azure DevOps project using the Pipelines REST API v7.1.

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

Create an Azure DevOps pipeline definition

yaml
id: azure_devops_create_pipeline
namespace: company.team

tasks:
  - id: create_pipeline
    type: io.kestra.plugin.azure.devops.pipelines.Create
    organization: my-org
    project: my-project
    personalAccessToken: "{{ secret('AZURE_DEVOPS_PAT') }}"
    name: "MyPipeline"
    folder: '\'
    configuration:
      type: "yaml"
      path: "azure-pipelines.yml"
      repository:
        id: "repo-id"
        type: "azureReposGit"
Properties

Pipeline name

The name of the new pipeline definition.

Azure DevOps organization

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

Azure DevOps project

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

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.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

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

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
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.

Configuration parameters

Pipeline configuration parameters such as configuration type, YAML path, and repository reference.

Default\

Pipeline folder

The folder of the pipeline definition (e.g. \). Defaults to \.

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.

Azure tenant ID

Azure Entra tenant ID used for service principal authentication.

Folder

The folder containing the pipeline definition.

Pipeline ID

The unique identifier of the created pipeline definition.

Pipeline name

The name of the created pipeline definition.

Revision number

The revision number of the pipeline definition.

Web URL

Azure DevOps browser URL to view the created pipeline definition.