az pipelines runs

注意

此參考是 Azure CLI 的 azure-devops 延伸模組的一部分 (2.30.0 版或更高版本)。 擴充功能會在您第一次執行 az pipelines run 命令時自動安裝。 深入了解擴充功能。

管理管線執行。

命令

名稱 Description 類型 狀態
az pipelines runs artifact

管理管線執行成品。

擴充 GA
az pipelines runs artifact download

下載管線成品。

擴充 GA
az pipelines runs artifact list

列出與執行相關聯的成品。

擴充 GA
az pipelines runs artifact upload

上傳管線成品。

擴充 GA
az pipelines runs list

列出專案中執行的管線。

擴充 GA
az pipelines runs show

顯示管線執行的詳細資料。

擴充 GA
az pipelines runs tag

管理管線執行標籤。

擴充 GA
az pipelines runs tag add

為管線執行新增 tag(s)。

擴充 GA
az pipelines runs tag delete

刪除管線執行標記。

擴充 GA
az pipelines runs tag list

取得管線執行的標籤。

擴充 GA

az pipelines runs list

列出專案中執行的管線。

az pipelines runs list [--branch]
                       [--detect {false, true}]
                       [--org]
                       [--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]

選擇性參數

--branch

依此分支的組建進行篩選。

--detect

自動偵測組織。

接受的值: false, true
--org --organization

Azure DevOps 組織 URL。 您可以使用 az devops configure -d organization=ORG_URL 來設定預設組織。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。範例: https://dev.azure.com/MyOrganizationName/

--pipeline-ids

要列出組建的定義識別碼(空格分隔)。 針對多個管線識別碼:--pipeline-ids 1 2。

--project -p

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

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

要列出的最大組建數目。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。

az pipelines runs show

顯示管線執行的詳細資料。

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

必要參數

--id

管線執行的識別碼。

選擇性參數

--detect

自動偵測組織。

接受的值: false, true
--open

在網頁瀏覽器中開啟組建結果頁面。

預設值: False
--org --organization

Azure DevOps 組織 URL。 您可以使用 az devops configure -d organization=ORG_URL 來設定預設組織。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。範例: https://dev.azure.com/MyOrganizationName/

--project -p

專案的名稱或識別碼。 您可以使用 az devops configure -d project=NAME_OR_ID 來設定預設專案。 如果未設定為預設,或透過 git 組態挑選,則為必要專案。

全域參數
--debug

增加記錄詳細資訊,以顯示所有偵錯記錄。

--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

--output -o

輸出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
預設值: json
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或識別碼。 您可以使用 來設定預設訂用 az account set -s NAME_OR_ID 帳戶。

--verbose

增加記錄詳細資訊。 使用 --debug 來取得完整偵錯記錄。