pipeline: serialize build.parameters as JSON when variables provided#1475
Open
luckyy14 wants to merge 1 commit intoAzure:masterfrom
Open
pipeline: serialize build.parameters as JSON when variables provided#1475luckyy14 wants to merge 1 commit intoAzure:masterfrom
luckyy14 wants to merge 1 commit intoAzure:masterfrom
Conversation
Author
|
@microsoft-github-policy-service agree [company="forbiddenmurk"] |
Author
|
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Request: Add
--propertiesto "pipelines runs artifact upload"Links to API documentation:
Feature request reference:
Summary
--propertiessupport to the new commandaz pipelines runs artifact upload.--propertiesaccepts artifact metadata in the formkey1=value1;key2=value2.propertiesargument to ArtifactToolInvoker.upload_pipeline_artifactpipelines runs artifact uploadpropertiesin argument parsing for the command--propertiesbehaviorFiles changed (as per provided diff)
azure-devops/azext_devops/dev/common/artifacttool.py
--propertiesto artifacttool args when providedazure-devops/azext_devops/dev/pipelines/_help.py
pipelines runs artifact uploadwith example demonstrating--propertiesazure-devops/azext_devops/dev/pipelines/arguments.py
properties:options_list=['--properties']
help: "Optional custom properties for the artifact in 'key1=value1;key2=value2' format."
azure-devops/azext_devops/dev/pipelines/pipeline.py
azure-devops/azext_devops/dev/pipelines/runs_artifacts.py
run_artifact_upload(...)signature acceptingpropertiesplus several helper options (validate_path, dry_run, retry/backoff, callbacks)properties.azure-devops/azext_devops/tests/latest/pipelines/test_pipeline_runs_artifacts.py
--propertiesis forwarded and behavior for dry_run, retries, callbacks, and path validation.Example usage
az pipelines runs artifact upload \ --artifact-name myArtifact \ --run-id 123 \ --path /path/to/artifact \ --properties "user-key1=value1;user-key2=value2"Proposed Command Details (artifact upload)
az pipelines runs artifact uploadNotes for reviewers
--propertiesshould be forwarded verbatim to artifacttool or transformed (e.g., JSON) before invoking the tooling or REST API.