Skip to content

Pipeline(E2E): move ModelKitArtifacts ref conditional into top-level …#833

Merged
timenick merged 1 commit into
mainfrom
yuesu/fix-e2e-pipeline-yaml
Jun 9, 2026
Merged

Pipeline(E2E): move ModelKitArtifacts ref conditional into top-level …#833
timenick merged 1 commit into
mainfrom
yuesu/fix-e2e-pipeline-yaml

Conversation

@KayMKM

@KayMKM KayMKM commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

…variable

Azure Pipelines does not allow ${{ if }} / ${{ else }} template expressions in the YAML key position inside a
esources.repositories entry. PR #823 used that pattern to switch the artifact repo's
ef between Build.SourceBranch and main, which caused the pipeline parser to fail with:

A template expression is not allowed in this context (Line 61/63)

Move the conditional into a top-level compile-time �ariables block (which does support ${{ if }}: value: ... / ${{ else }}: value: ...) and reference the resulting �rtifactsRef from
esources.repositories.ModelKitArtifacts.ref as a plain value-position template expression — which is the pattern explicitly enabled by ADO Sprint 212.

…variable

Azure Pipelines does not allow ${{ if }} / ${{ else }} template expressions in the YAML key position inside a 
esources.repositories entry. PR #823 used that pattern to switch the artifact repo's 
ef between Build.SourceBranch and main, which caused the pipeline parser to fail with:

  A template expression is not allowed in this context (Line 61/63)

Move the conditional into a top-level compile-time �ariables block (which does support ${{ if }}: value: ... / ${{ else }}: value: ...) and reference the resulting �rtifactsRef from 
esources.repositories.ModelKitArtifacts.ref as a plain value-position template expression — which is the pattern explicitly enabled by ADO Sprint 212.
@KayMKM KayMKM requested a review from a team as a code owner June 8, 2026 07:58
@timenick timenick merged commit 54bb065 into main Jun 9, 2026
9 checks passed
@timenick timenick deleted the yuesu/fix-e2e-pipeline-yaml branch June 9, 2026 02:27
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.

2 participants