mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
103 lines
3.0 KiB
YAML
103 lines
3.0 KiB
YAML
trigger: none
|
|
|
|
parameters: # parameters are shown up in ADO UI in a build queue time
|
|
- name: 'debug'
|
|
displayName: 'Enable debug output'
|
|
type: boolean
|
|
default: false
|
|
- name: InternalSDKBlobURL
|
|
displayName: URL to the blob having internal .NET SDK
|
|
type: string
|
|
default: ' '
|
|
- name: ReleaseTagVar
|
|
displayName: Release Tag
|
|
type: string
|
|
default: 'fromBranch'
|
|
- name: SKIP_SIGNING
|
|
displayName: Skip Signing
|
|
type: string
|
|
default: 'NO'
|
|
- name: SkipPublish
|
|
displayName: Skip Publishing to Nuget
|
|
type: boolean
|
|
default: false
|
|
- name: SkipPSInfraInstallers
|
|
displayName: Skip Copying Archives and Installers to PSInfrastructure Public Location
|
|
type: boolean
|
|
default: false
|
|
- name: skipMSIXPublish
|
|
displayName: Skip MSIX Publish
|
|
type: boolean
|
|
default: false
|
|
|
|
name: release-$(BUILD.SOURCEBRANCHNAME)-prod-$(Build.BuildId)
|
|
|
|
variables:
|
|
- template: templates/variables/PowerShell-Release-Variables.yml
|
|
parameters:
|
|
debug: ${{ parameters.debug }}
|
|
ReleaseTagVar: ${{ parameters.ReleaseTagVar }}
|
|
|
|
resources:
|
|
repositories:
|
|
- repository: onebranchTemplates
|
|
type: git
|
|
name: OneBranch.Pipelines/GovernedTemplates
|
|
ref: refs/heads/main
|
|
- repository: PSInternalTools
|
|
type: git
|
|
name: PowerShellCore/Internal-PowerShellTeam-Tools
|
|
ref: refs/heads/master
|
|
|
|
pipelines:
|
|
- pipeline: CoOrdinatedBuildPipeline
|
|
source: 'PowerShell-Coordinated Binaries-Official'
|
|
|
|
- pipeline: PSPackagesOfficial
|
|
source: 'PowerShell-Packages-Official'
|
|
trigger:
|
|
branches:
|
|
include:
|
|
- master
|
|
- releases/*
|
|
|
|
extends:
|
|
template: v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates
|
|
parameters:
|
|
release:
|
|
category: NonAzure
|
|
featureFlags:
|
|
WindowsHostVersion:
|
|
Version: 2022
|
|
Network: KS3
|
|
incrementalSDLBinaryAnalysis: true
|
|
cloudvault:
|
|
enabled: false
|
|
globalSdl:
|
|
disableLegacyManifest: true
|
|
# disabled Armory as we dont have any ARM templates to scan. It fails on some sample ARM templates.
|
|
armory:
|
|
enabled: false
|
|
tsa:
|
|
enabled: true
|
|
credscan:
|
|
enabled: true
|
|
scanFolder: $(Build.SourcesDirectory)
|
|
suppressionsFile: $(Build.SourcesDirectory)\.config\suppress.json
|
|
binskim:
|
|
break: false # always break the build on binskim issues in addition to TSA upload
|
|
exactToolVersion: 4.4.2
|
|
policheck:
|
|
break: true # always break the build on policheck issues. You can disable it by setting to 'false'
|
|
# suppression:
|
|
# suppressionFile: $(Build.SourcesDirectory)\.gdn\global.gdnsuppress
|
|
tsaOptionsFile: .config\tsaoptions.json
|
|
|
|
stages:
|
|
- template: templates/stages/PowerShell-Release-Stages.yml
|
|
parameters:
|
|
releaseEnvironment: Production
|
|
SkipPublish: ${{ parameters.SkipPublish }}
|
|
SkipPSInfraInstallers: ${{ parameters.SkipPSInfraInstallers }}
|
|
skipMSIXPublish: ${{ parameters.skipMSIXPublish }}
|