Azure / Azure/azure-cli-extensions

Unclear how to use --artifact-metadata-list

Open
#1,632 9 comments 5 reactions 0 assignees View on GitHub
customer-reported Pipelines Service Attention
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

I'm having trouble discovering what to use for --artifact-metadata-list. The descriptions on this page seem vague. It would be really helpful to have some examples, or some way to learn how to use this parameter to specify which pipeline run output I want to create a release for.

So I'm trying to "az pipelines release create" but am stuck getting the error,

"Cannot retrieve the default version for artifact 'MyMobile Builds' because default version type is 'selectDuringReleaseCreationType'"

I found this, which defines ArtifactMetadata, but how to use this is still unclear. https://docs.microsoft.com/en-us/rest/api/azure/devops/release/releases/create?view=azure-devops-rest-5.0#artifactmetadata

I'm trying different incantations of things like --artifact-metadata-list id=172, trying to guess how it works, but no luck.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: f912b9b3-f27c-deb7-54c1-8e3f477ed26f
* Version Independent ID: fb24966a-f6fb-1828-2e0e-4374ae1df3d9
* Content: [az pipelines release](https://docs.microsoft.com/en-us/cli/azure/ext/azure-devops/pipelines/release?view=azure-cli-latest#ext-azure-devops-az-pipelines-release-create)
* Content Source: [latest/docs-ref-autogen/ext/azure-devops/pipelines/release.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/live/latest/docs-ref-autogen/ext/azure-devops/pipelines/release.yml)
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.