@@ -25,6 +25,9 @@ parameters: # parameters are shown up in ADO UI in a build queue time
2525 displayName : Skip Copying Archives and Installers to PSInfrastructure Public Location
2626 type : boolean
2727 default : false
28+ - name : OfficialBuild
29+ type : boolean
30+ default : false
2831
2932name : release-$(BUILD.SOURCEBRANCHNAME)-$(Build.BuildId)
3033
@@ -58,6 +61,13 @@ variables:
5861 - name : ReleaseTagVar
5962 value : ${{ parameters.ReleaseTagVar }}
6063 - group : PoolNames
64+ - name : templateFile
65+ value : ${{ iif ( parameters.OfficialBuild, 'v2/OneBranch.Official.CrossPlat.yml@onebranchTemplates', 'v2/OneBranch.NonOfficial.CrossPlat.yml@onebranchTemplates' ) }}
66+ - name : releaseEnvironment
67+ value : ${{ iif ( parameters.OfficialBuild, 'Production', 'Test' ) }}
68+ # Fix for BinSkim ICU package error in Linux containers
69+ - name : DOTNET_SYSTEM_GLOBALIZATION_INVARIANT
70+ value : true
6171
6272resources :
6373 repositories :
@@ -83,24 +93,22 @@ resources:
8393 - releases/*
8494
8595extends :
86- template : v2/OneBranch.Official.CrossPlat.yml@templates
96+ template : ${{ variables.templateFile }}
8797 parameters :
8898 release :
8999 category : NonAzure
90100 featureFlags :
91101 WindowsHostVersion :
92102 Version : 2022
93103 Network : KS3
104+ incrementalSDLBinaryAnalysis : true
94105 cloudvault :
95106 enabled : false
96107 globalSdl :
97108 disableLegacyManifest : true
98109 # disabled Armory as we dont have any ARM templates to scan. It fails on some sample ARM templates.
99110 armory :
100111 enabled : false
101- asyncSdl :
102- enabled : true
103- tsaOptionsFile : .config/tsaoptions.json
104112 tsa :
105113 enabled : true
106114 credscan :
@@ -109,6 +117,7 @@ extends:
109117 suppressionsFile : $(Build.SourcesDirectory)\.config\suppress.json
110118 binskim :
111119 break : false # always break the build on binskim issues in addition to TSA upload
120+ exactToolVersion : 4.4.2
112121 policheck :
113122 break : true # always break the build on policheck issues. You can disable it by setting to 'false'
114123 # suppression:
@@ -279,7 +288,7 @@ extends:
279288 - setReleaseTagAndChangelog
280289 - UpdateChangeLog
281290 variables :
282- ob_release_environment : Production
291+ ob_release_environment : ${{ parameters.releaseEnvironment }}
283292 jobs :
284293 - template : /.pipelines/templates/release-githubNuget.yml@self
285294 parameters :
0 commit comments