Skip to main content

Run pipeline

Start a pipeline run on a branch, with optional parameters and variables, optionally skipping some stages.

Command in the Azure DevOps toolkit · id ooa.azure_devops/run_pipeline · 8 inputs (4 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Organization address (URL)StringYesOrganization or collection address, e.g. https://dev.azure.com/contoso, or https://devops.contoso.local/tfs/DefaultCollection for Azure DevOps Server.
Personal access tokenCredentialYesPersonal access token from the vault, with the scopes this action needs (e.g. Work Items read and write); a Microsoft Entra ID token works too. Or leave it empty and choose a connection that signs in, which gets and renews the token.
ProjectStringYesProject name, e.g. Finance Portal.
Pipeline IDNumberYesPipeline id, from List pipelines.
BranchStringNoBranch to run on. Empty uses the pipeline's default branch.
ParametersDictionaryNoTemplate parameters, e.g. {"environment": "test"}.
VariablesDictionaryNoVariables settable at queue time, e.g. {"releaseNote": "Hotfix"}.
Stages to skipListNoNames of YAML stages not to run, as written after 'stage:' in the YAML, e.g. ["DeployProd"].

Outputs​

OutputTypeWhat it is
run_idNumberId of the new run; use it with Get pipeline run.
stateStringState right after starting, normally inProgress.
urlStringWeb address of the run.