[release/v7.5] Hardcode Official templates by adityapatwardhan · Pull Request #26968 · PowerShell/PowerShell · GitHub
Skip to content
Merged
Show file tree
Hide file tree
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
14 changes: 5 additions & 9 deletions .pipelines/PowerShell-Coordinated_Packages-Official.yml
11 changes: 3 additions & 8 deletions .pipelines/PowerShell-Packages-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ parameters: # parameters are shown up in ADO UI in a build queue time
displayName: Skip Signing
type: string
default: 'NO'
- name: OfficialBuild
type: boolean
default: false
- name: disableNetworkIsolation
type: boolean
default: false

name: pkgs-$(BUILD.SOURCEBRANCHNAME)-prod.${{ parameters.OfficialBuild }}-$(Build.BuildId)
name: pkgs-$(BUILD.SOURCEBRANCHNAME)-prod.true-$(Build.BuildId)

variables:
- name: CDP_DEFINITION_BUILD_COUNT
Expand Down Expand Up @@ -67,8 +64,6 @@ variables:
- name: branchCounter
value: $[counter(variables['branchCounterKey'], 1)]
- group: MSIXSigningProfile
- name: templateFile
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
- name: disableNetworkIsolation
value: ${{ parameters.disableNetworkIsolation }}

Expand All @@ -89,7 +84,7 @@ resources:
ref: refs/heads/main

extends:
template: ${{ variables.templateFile }}
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
parameters:
cloudvault:
enabled: false
Expand Down Expand Up @@ -294,7 +289,7 @@ extends:
jobs:
- template: /.pipelines/templates/package-create-msix.yml@self
parameters:
OfficialBuild: ${{ parameters.OfficialBuild }}
OfficialBuild: true

- stage: upload
displayName: 'Upload'
Expand Down
9 changes: 2 additions & 7 deletions .pipelines/PowerShell-Release-Official-Azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time
displayName: Skip Signing
type: string
default: 'NO'
- name: OfficialBuild
type: boolean
default: false

name: ev2-$(BUILD.SOURCEBRANCHNAME)-prod.${{ parameters.OfficialBuild }}-$(Build.BuildId)
name: ev2-$(BUILD.SOURCEBRANCHNAME)-prod.true-$(Build.BuildId)

variables:
- name: CDP_DEFINITION_BUILD_COUNT
Expand Down Expand Up @@ -49,8 +46,6 @@ variables:
- name: LinuxContainerImage
value: mcr.microsoft.com/onebranch/azurelinux/build:3.0
- group: PoolNames
- name: templateFile
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}

resources:
repositories:
Expand All @@ -72,7 +67,7 @@ resources:
- releases/*

extends:
template: ${{ variables.templateFile }}
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
parameters:
featureFlags:
WindowsHostVersion:
Expand Down
11 changes: 3 additions & 8 deletions .pipelines/PowerShell-Release-Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time
displayName: Skip MSIX Publish
type: boolean
default: false
- name: OfficialBuild
type: boolean
default: false

name: release-$(BUILD.SOURCEBRANCHNAME)-prod.${{ parameters.OfficialBuild }}-$(Build.BuildId)
name: release-$(BUILD.SOURCEBRANCHNAME)-prod.true-$(Build.BuildId)

variables:
- name: CDP_DEFINITION_BUILD_COUNT
Expand Down Expand Up @@ -65,10 +62,8 @@ variables:
- name: ReleaseTagVar
value: ${{ parameters.ReleaseTagVar }}
- group: PoolNames
- name: templateFile
value: ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
- name: releaseEnvironment
value: ${{ iif ( parameters.OfficialBuild, 'Production', 'Test' ) }}
value: 'Production'
# Fix for BinSkim ICU package error in Linux containers
- name: DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
value: true
Expand Down Expand Up @@ -97,7 +92,7 @@ resources:
- releases/*

extends:
template: ${{ variables.templateFile }}
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
parameters:
release:
category: NonAzure
Expand Down
9 changes: 2 additions & 7 deletions .pipelines/PowerShell-vPack-Official.yml
Loading