Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion eng/pipeline/steps/set-retain-build-var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
# of the configured official branches/prefixes.
steps:
- powershell: |
$isOfficialDefinition = -not "$(Build.DefinitionName)".EndsWith("(unofficial)")
# Use the 1ESPT-provided ONEESPT_BUILDTYPE env var as the source of truth
# for official vs unofficial, matching how docker-tools' validate-branch.yml
# and set-dry-run.yml decide. The Build.DefinitionName suffix convention is
# human-set and case-sensitive, so relying on it can permanently retain
# builds from an unofficial pipeline with a non-conforming name.
$isOfficialDefinition = "$env:ONEESPT_BUILDTYPE" -ne "Unofficial"
$officialBranchList = "$(officialBranches)"
$sourceBranch = "$(sourceBranch)"
$officialBranchPrefixes = "$(officialBranchPrefixes)"
Expand Down
Loading