feat(ir): add typed helper for PublishPipelineArtifact@1#1065
Merged
jamesadevine merged 2 commits intoJun 17, 2026
Conversation
Adds `publish_pipeline_artifact_step()` to `src/compile/ir/tasks.rs`. The helper accepts the required `targetPath` as a positional parameter and exposes all optional inputs (artifact name, publishLocation, fileSharePath, parallel copy flags, custom properties) via the existing `.with_input()` builder on `TaskStep`. Four unit tests cover: - Default construction (task ID, display name, required input only) - Optional artifact name - Optional publishLocation - File share path variant Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Open
Collaborator
|
@copilot resolve the merge conflicts in this pull request |
Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Contributor
Resolved. The conflict was in |
github-actions Bot
added a commit
that referenced
this pull request
Jun 17, 2026
…, DeleteFiles@1 helpers to ir.mdx Three typed helpers added in #1063, #1065, and #1071 were missing from the site docs. This patch: - Adds three rows to the Available helpers table in ir.mdx - Updates the tasks.rs module-layout bullet to list all 12 helpers - Updates the cross-reference sentence in extending.mdx to mention the three new entries Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 task
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.
Summary
Adds a typed factory function for
PublishPipelineArtifact@1to the ado-aw IR.Motivation
Previously, any code that needed to emit this ADO task step had to hand-craft
TaskStep::new("PublishPipelineArtifact@1", ...)with raw string inputs. ThisPR introduces a well-typed helper that makes the required/optional input boundary
explicit and the API self-documenting.
PublishPipelineArtifact@1is the moderncounterpart to
DownloadPipelineArtifact@2— completing the upload/download pairfor pipeline artifact workflows.
Changes
src/compile/ir/tasks.rs:publish_pipeline_artifact_step(target_path)factory function with full optional-input documentation tableADO Task Reference
PublishPipelineArtifact@1targetPath(file or directory to publish)artifact(name),publishLocation(pipeline/filepath),fileSharePath,parallel,parallelCount,propertiesValidation
cargo build --all-targetscargo testcargo clippy --all-targets --all-features --workspace -- -D warningsCreated by the ado-task-ir-contributor workflow.
Warning
Firewall blocked 2 domains
The following domains were blocked by the firewall during workflow execution:
spsprodeus21.vssps.visualstudio.comspsprodweu4.vssps.visualstudio.comSee Network Configuration for more information.