Skip to content

fix: use artifactName for pipelineArtifact inputs in publish pipeline#481

Merged
corinagum merged 1 commit into
mainfrom
cg/fix-publish-inputs
Jun 17, 2026
Merged

fix: use artifactName for pipelineArtifact inputs in publish pipeline#481
corinagum merged 1 commit into
mainfrom
cg/fix-publish-inputs

Conversation

@corinagum

Copy link
Copy Markdown
Contributor

The 1ES template requires artifactName (not artifact) for pipelineArtifact input declarations in templateContext. This was causing:

Unexpected value 'artifactName is a required argument for pipelineArtifact input and 1ES.DownloadPipelineArtifact@1 task'

The 1ES template requires 'artifactName' (not 'artifact') for
pipelineArtifact input declarations in templateContext.

Co-authored-by: Copilot <[email protected]>
Copilot AI review requested due to automatic review settings June 17, 2026 22:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the Azure DevOps publish pipeline template usage by switching pipelineArtifact input declarations in templateContext from artifact to the required artifactName, aligning with 1ES template expectations so the pipeline no longer fails with the missing-argument error.

Changes:

  • Update templateContext.inputs entries for pipelineArtifact to use artifactName: pypi-packages in both internal and public publish jobs.

@corinagum
corinagum merged commit 4d4b001 into main Jun 17, 2026
5 checks passed
@corinagum
corinagum deleted the cg/fix-publish-inputs branch June 17, 2026 22:55
corinagum added a commit to microsoft/teams-sdk that referenced this pull request Jun 17, 2026
…ation (#2894)

Same fix as microsoft/teams.ts#625 and microsoft/teams.py#481.

Splits the single-job publish pipeline into a separate `publish` stage
with two jobs:
- `publish_internal` - no release context, publishes to Azure Artifacts
- `publish_public` - `type: releaseJob` + `isProduction: true`,
publishes via ESRP

This fixes the 1ES template error:
```
Change management: no release tasks outside of release jobs in pipeline
```

Also uses `artifactName` (required by 1ES template) for
`pipelineArtifact` inputs.

Co-authored-by: Copilot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants