แชร์ผ่าน


az pipelines runs

Note

This reference is part of the azure-devops extension for the Azure CLI (version 2.30.0 or higher). The extension will automatically install the first time you run an az pipelines runs command. Learn more about extensions.

Manage pipeline runs.

Commands

Name Description Type Status
az pipelines runs artifact

Manage pipeline run artifacts.

Extension GA
az pipelines runs artifact download

Download a pipeline artifact.

Extension GA
az pipelines runs artifact list

List artifacts associated with a run.

Extension GA
az pipelines runs artifact upload

Upload a pipeline artifact.

Extension GA
az pipelines runs list

List the pipeline runs in a project.

Extension GA
az pipelines runs show

Show details of a pipeline run.

Extension GA
az pipelines runs tag

Manage pipeline run tags.

Extension GA
az pipelines runs tag add

Add tag(s) for a pipeline run.

Extension GA
az pipelines runs tag delete

Delete a pipeline run tag.

Extension GA
az pipelines runs tag list

Get tags for a pipeline run.

Extension GA

az pipelines runs list

List the pipeline runs in a project.

az pipelines runs list [--branch]
                       [--detect {false, true}]
                       [--org --organization]
                       [--pipeline-ids]
                       [--project]
                       [--query-order {FinishTimeAsc, FinishTimeDesc, QueueTimeAsc, QueueTimeDesc, StartTimeAsc, StartTimeDesc}]
                       [--reason {all, batchedCI, buildCompletion, checkInShelveset, individualCI, manual, pullRequest, schedule, triggered, userCreated, validateShelveset}]
                       [--requested-for]
                       [--result {canceled, failed, none, partiallySucceeded, succeeded}]
                       [--status {all, cancelling, completed, inProgress, none, notStarted, postponed}]
                       [--tags]
                       [--top]

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--branch

Filter by builds for this branch.

--detect

Automatically detect organization.

Property Value
Accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--pipeline-ids

IDs (space separated) of definitions to list builds for. For multiple pipeline ids: --pipeline-ids 1 2.

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

--query-order

Order of pipeline runs.

Property Value
Accepted values: FinishTimeAsc, FinishTimeDesc, QueueTimeAsc, QueueTimeDesc, StartTimeAsc, StartTimeDesc
--reason

Limit to builds with this reason.

Property Value
Accepted values: all, batchedCI, buildCompletion, checkInShelveset, individualCI, manual, pullRequest, schedule, triggered, userCreated, validateShelveset
--requested-for

Limit to builds requested for this user or group.

--result

Limit to builds with this result.

Property Value
Accepted values: canceled, failed, none, partiallySucceeded, succeeded
--status

Limit to builds with this status.

Property Value
Accepted values: all, cancelling, completed, inProgress, none, notStarted, postponed
--tags

Limit to builds with each of the specified tags. Space separated.

--top

Maximum number of builds to list.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az pipelines runs show

Show details of a pipeline run.

az pipelines runs show --id
                       [--detect {false, true}]
                       [--open]
                       [--org --organization]
                       [--project]

Required Parameters

--id

ID of the pipeline run.

Optional Parameters

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--detect

Automatically detect organization.

Property Value
Accepted values: false, true
--open

Open the build results page in your web browser.

Property Value
Default value: False
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--project -p

Name or ID of the project. You can configure the default project using az devops configure -d project=NAME_OR_ID. Required if not configured as default or picked up via git config.

Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False