Skip to content

ext-azure-ai-agents-live pipeline fails: PublishPipelineArtifact@1 not allowed under 1ES template #9004

Description

@vhvb1989

Problem

Running the ext-azure-ai-agents-live pipeline fails during template expansion:

/v1/Steps/UserProvidedBuildSteps.yml@1ESPipelineTemplates (Line: 89, Col: 7): Unexpected value 'PublishPipelineArtifact@1 task is not allowed. Please use `output: pipelineArtifact` instead. See https://aka.ms/1espt/outputs for more details'

Cause

eng/pipelines/ext-azure-ai-agents-live.yml extends 1es-redirect.yml, so it runs through the 1ES pipeline template, which forbids calling PublishPipelineArtifact@1 as a plain task: step. 1ES requires artifacts to be declared as job-level outputs via templateContext.outputs using output: pipelineArtifact (the pattern already used by other 1ES pipelines in the repo, e.g. eng/pipelines/templates/jobs/build-cli.yml).

Fix

Move the test-log publish out of steps: into a templateContext.outputs block on the Tier2 job, preserving condition: always() so logs still publish on failure.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions