共用方式為


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 config 自動取得,則為必要。

--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 config 自動取得,則為必要。

全域參數
--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。