Azure / Azure/azure-devops-cli-extension

[Feature Request] Add `properties` parameter in `az pipelines runs artifact upload` command

Open
#1,419 1 comment 0 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

**Description:**

I would like to request the addition of the `properties` input variable from the PublishPipelineArtifact@v1 task as an optional parameter for the respective command of the Azure DevOps CLI extension.

**Feature Request:**

The PublishPipelineArtifact@v1 task in Azure DevOps Pipelines allows users to specify custom properties using the `properties` input variable. This is useful for adding metadata to the published artifacts. However, the current `az pipelines runs artifact upload` command in the Azure DevOps CLI extension does not support this parameter.

**Proposed Solution:**

Add a new command option `--properties` to the `az pipelines runs artifact upload` command to allow users to specify custom properties when publishing pipeline artifacts. The option should accept a key-value pair format, similar to the properties input variable in the PublishPipelineArtifact@v1 task.

**Example Usage:**

```az pipelines runs artifact upload --artifact-name myArtifact --run-id myRunID --path /path/to/artifact --properties "user-key1=value1;user-key2=value2"```

**Benefits:**

- Consistency between the Azure DevOps Pipelines task and the CLI extension.
- Enhanced functionality for users who rely on custom properties for their artifacts.
- Improved automation capabilities by allowing metadata to be specified directly from the CLI.

Thank you for considering this feature request. I believe it will greatly enhance the usability and functionality of the Azure DevOps CLI extension.

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.