Skip to content

Pipeline(E2E): align ModelKitArtifacts ref with release branches - #823

Merged
Yue Sun (KayMKM) merged 1 commit into
mainfrom
yuesu/e2e-artifacts-release-ref
Jun 8, 2026
Merged

Yue Sun (KayMKM) merged 1 commit into
mainfrom
yuesu/e2e-artifacts-release-ref

Conversation

@KayMKM

Copy link
Copy Markdown
Contributor

When the Modelkit E2E Test pipeline is triggered from a release/* branch, check out the same-named branch from the ModelKitArtifacts repo so the artifact content matches the release. Fall back to main for scheduled/manual runs from non-release branches.

When the Modelkit E2E Test pipeline is triggered from a release/* branch,
check out the same-named branch from the ModelKitArtifacts repo so the
artifact content matches the release. Fall back to main for scheduled/manual
runs from non-release branches.
@KayMKM
Yue Sun (KayMKM) marked this pull request as ready for review June 8, 2026 03:25
@KayMKM
Yue Sun (KayMKM) requested a review from a team as a code owner June 8, 2026 03:25
@KayMKM
Yue Sun (KayMKM) merged commit 07f71ea into main Jun 8, 2026
9 checks passed
@KayMKM
Yue Sun (KayMKM) deleted the yuesu/e2e-artifacts-release-ref branch June 8, 2026 06:07
Zhipeng Wang (timenick) pushed a commit that referenced this pull request Jun 9, 2026
#833)

…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.
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