az pipelines release definition

注意

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

管理發行定義。

命令

名稱 Description 類型 狀態
az pipelines release definition list

列出發行定義。

擴充 GA
az pipelines release definition show

取得發行定義的詳細資料。

擴充 GA

az pipelines release definition list

列出發行定義。

az pipelines release definition list [--artifact-source-id]
                                     [--artifact-type {build, externaltfsbuild, git, github, jenkins, tfvc}]
                                     [--detect {false, true}]
                                     [--name]
                                     [--org]
                                     [--project]
                                     [--top]

選擇性參數

--artifact-source-id

將結果限制為與此artifact_source_id相關聯的定義。 例如,如果是建置,它會是 {projectGuid}:{BuildDefinitionId},若為 Jenkins,則如果是 {Jenkins連線ionId}:{JenkinsDefinitionId},TfsOnPrem 則為 {TfsOnPrem連線ionId}:{ProjectName}:{TfsOnPremDefinitionId}。 對於協力廠商成品,例如 TeamCity、BitBucket,您可以在 vss-extension.json 中參考 'uniqueSourceIdentifier'。。 https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions

--artifact-type

將會傳回具有指定 artifactType 的版本定義。

接受的值: build, externaltfsbuild, git, github, jenkins, tfvc
--detect

自動偵測組織。

接受的值: false, true
--name

將結果限制為具有此名稱的定義,或包含此名稱。 範例:「FabCI」。

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

--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 release definition show

取得發行定義的詳細資料。

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

選擇性參數

--detect

自動偵測組織。

接受的值: false, true
--id

定義的識別碼。

--name

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

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