az pipelines release

注意

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

管理版本。

命令

名稱 Description 類型 狀態
az pipelines release create

要求 (建立) 發行。

副檔名 GA
az pipelines release definition

管理發行定義。

副檔名 GA
az pipelines release definition list

列出發行定義。

副檔名 GA
az pipelines release definition show

取得發行定義的詳細數據。

副檔名 GA
az pipelines release list

列出發行結果。

副檔名 GA
az pipelines release show

取得版本的詳細數據。

副檔名 GA

az pipelines release create

要求 (建立) 發行。

az pipelines release create [--artifact-metadata-list]
                            [--definition-id]
                            [--definition-name]
                            [--description]
                            [--detect {false, true}]
                            [--open]
                            [--org]
                            [--project]

選擇性參數

--artifact-metadata-list

空格分隔的 “alias=version_id” 組。

--definition-id

要建立的定義標識碼。 如果未提供 --definition-name,則為必要專案。

--definition-name

要建立的定義名稱。 如果提供 --definition-id,則會忽略 。

--description

版本的描述。

--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 來取得完整偵錯記錄。

az pipelines release list

列出發行結果。

az pipelines release list [--definition-id]
                          [--detect {false, true}]
                          [--max-created-time]
                          [--min-created-time]
                          [--org]
                          [--project]
                          [--source-branch]
                          [--status]
                          [--top]

選擇性參數

--definition-id

要列出版本的定義標識碼。

--detect

自動偵測組織。

接受的值: false, true
--max-created-time

這次之前建立的版本。

--min-created-time

此時間之後所建立的版本。

--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 組態挑選,則為必要專案。

--source-branch

篩選此分支的版本。

--status

此狀態的發行限制。

--top

要列出的版本數目上限。 預設值為 50。

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

取得版本的詳細數據。

az pipelines release 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 來取得完整偵錯記錄。