@@ -22,12 +22,8 @@ resources:
2222 ref : refs/tags/release
2323name : $(Date:yyyyMMdd).$(Rev:r)
2424variables :
25- - name : EnableNuGetPackageRestore
26- value : true
27- - name : Packaging.EnableSBOMSigning
28- value : true
29- - name : TeamName
30- value : Asp.Net
25+ TeamName : Asp.Net
26+ EnableNuGetPackageRestore : true
3127extends :
3228 template : azure-pipelines/MicroBuild.1ES.Official.yml@MicroBuildTemplate
3329 parameters :
@@ -51,9 +47,10 @@ extends:
5147 jobs :
5248 - job : Phase_1
5349 displayName : Phase 1
50+ timeoutInMinutes : 120
5451 cancelTimeoutInMinutes : 1
5552 pool :
56- name : VSEngSS-MicroBuild2019 -1ES
53+ name : VSEngSS-MicroBuild2022 -1ES
5754 templateContext :
5855 mb :
5956 signing :
@@ -63,12 +60,19 @@ extends:
6360 outputs :
6461 - output : pipelineArtifact
6562 displayName : ' Publish Artifact: Nuget packages'
66- targetPath : $(Build.SourcesDirectory)\.binaries\Packages\Release
6763 artifactName : Nuget packages
64+ targetPath : $(Build.SourcesDirectory)\.binaries\Packages\Release
65+ sbomEnabled : true
66+ sbomBuildDropPath : $(Build.SourcesDirectory)\bin\Release\Packages
67+ sbomBuildComponentPath : $(Build.SourcesDirectory)\bin\Release\Packages
68+ sbomPackageName : Microsoft.AspNet.OutputCache
69+ # sbomPackageVersion: $(NugetPackageVersion)
70+ sbomValidate : true
6871 steps :
6972 - checkout : self
7073 clean : true
7174 fetchTags : true
75+ persistCredentials : true
7276 - task : NuGetToolInstaller@0
7377 displayName : Use NuGet 5.4.0
7478 inputs :
@@ -90,10 +94,11 @@ extends:
9094 msbuildVersion : 17.0
9195 msbuildArchitecture : x64
9296 configuration : Release
93- msbuildArguments : /p:GitCommit=%BUILD_SOURCEVERSION% /p:GitCommitLink="https://github.com/aspnet/AspNetSessionState/commit/%BUILD_SOURCEVERSION% " /p:SignType=real /p:SignAssembly=true /verbosity:normal
97+ msbuildArguments : /p:GitCommit=$(Build.SourceVersion) /p:GitCommitLink="https://github.com/aspnet/AspNetSessionState/commit/$(Build.SourceVersion) " /p:SignType=real /p:SignAssembly=true /verbosity:normal
9498 clean : true
9599 createLogFile : true
96100 logFileVerbosity : detailed
101+ timeoutInMinutes : 120
97102 - task : CopyFiles@2
98103 displayName : Stage dll's for verification
99104 inputs :
@@ -121,15 +126,15 @@ extends:
121126 displayName : Verify Signed Packages
122127 inputs :
123128 TargetFolder : $(Build.SourcesDirectory)\.binaries\verify\packages
124- WhiteListPathForCerts : tools/ .verif.whitelist
129+ WhiteListPathForCerts : $(Build.SourcesDirectory)\ tools\ .verif.whitelist
125130 ExcludeFolders : .git MicroBuild decomp *.xml
126131 # Following article on https://dev.azure.com/devdiv/DevDiv/_wiki/wikis/DevDiv.wiki/25351/APIScan-step-by-step-guide-to-setting-up-a-Pipeline
127132 # No longer need the old format, and following guideline to use (ApiScanClientId)
128133 - task : APIScan@2
129134 displayName : Run APIScan
130135 inputs :
131136 softwareFolder : ' $(Build.SourcesDirectory)\.binaries\verify\dlls'
132- softwareName : ' Microsoft.AspNet.SessionState.* '
137+ softwareName : ' Microsoft.AspNet.SessionState'
133138 softwareVersionNum : ' *'
134139 softwareBuildNum : ' $(Build.BuildId)'
135140 symbolsFolder : ' $(Build.SourcesDirectory)\.binaries\bin\Release;SRV*http://symweb'
0 commit comments