11parameters :
22 runAsPublic : false
3- sourceIndexUploadPackageVersion : 2.0.0-20240522.1
4- sourceIndexProcessBinlogPackageVersion : 1.0.1-20240522.1
5- sourceIndexPackageSource : https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json
63 sourceIndexBuildCommand : powershell -NoLogo -NoProfile -ExecutionPolicy Bypass -Command "eng/common/build.ps1 -restore -build -binarylog -ci"
74 preSteps : []
85 binlogPath : artifacts/log/Debug/Build.binlog
1613 dependsOn : ${{ parameters.dependsOn }}
1714 condition : ${{ parameters.condition }}
1815 variables :
19- - name : SourceIndexUploadPackageVersion
20- value : ${{ parameters.sourceIndexUploadPackageVersion }}
21- - name : SourceIndexProcessBinlogPackageVersion
22- value : ${{ parameters.sourceIndexProcessBinlogPackageVersion }}
23- - name : SourceIndexPackageSource
24- value : ${{ parameters.sourceIndexPackageSource }}
2516 - name : BinlogPath
2617 value : ${{ parameters.binlogPath }}
2718 - template : /eng/common/core-templates/variables/pool-providers.yml
@@ -34,48 +25,20 @@ jobs:
3425 pool :
3526 ${{ if eq(variables['System.TeamProject'], 'public') }} :
3627 name : $(DncEngPublicBuildPool)
37- image : 1es-windows-2022-open
38- os : windows
28+ image : windows.vs2022.amd64.open
3929 ${{ if eq(variables['System.TeamProject'], 'internal') }} :
4030 name : $(DncEngInternalBuildPool)
41- image : 1es-windows-2022
42- os : windows
31+ image : windows.vs2022.amd64
4332
4433 steps :
4534 - ${{ if eq(parameters.is1ESPipeline, '') }} :
4635 - ' Illegal entry point, is1ESPipeline is not defined. Repository yaml should not directly reference templates in core-templates folder. ' : error
4736
4837 - ${{ each preStep in parameters.preSteps }} :
4938 - ${{ preStep }}
50-
51- - task : UseDotNet@2
52- displayName : Use .NET 8 SDK
53- inputs :
54- packageType : sdk
55- version : 8.0.x
56- installationPath : $(Agent.TempDirectory)/dotnet
57- workingDirectory : $(Agent.TempDirectory)
58-
59- - script : |
60- $(Agent.TempDirectory)/dotnet/dotnet tool install BinLogToSln --version $(sourceIndexProcessBinlogPackageVersion) --add-source $(SourceIndexPackageSource) --tool-path $(Agent.TempDirectory)/.source-index/tools
61- $(Agent.TempDirectory)/dotnet/dotnet tool install UploadIndexStage1 --version $(sourceIndexUploadPackageVersion) --add-source $(SourceIndexPackageSource) --tool-path $(Agent.TempDirectory)/.source-index/tools
62- displayName: Download Tools
63- # Set working directory to temp directory so 'dotnet' doesn't try to use global.json and use the repo's sdk.
64- workingDirectory: $(Agent.TempDirectory)
65-
6639 - script : ${{ parameters.sourceIndexBuildCommand }}
6740 displayName : Build Repository
6841
69- - script : $(Agent.TempDirectory)/.source-index/tools/BinLogToSln -i $(BinlogPath) -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output
70- displayName : Process Binlog into indexable sln
71-
72- - ${{ if and(eq(parameters.runAsPublic, 'false'), ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }} :
73- - task : AzureCLI@2
74- displayName : Log in to Azure and upload stage1 artifacts to source index
75- inputs :
76- azureSubscription : ' SourceDotNet Stage1 Publish'
77- addSpnToEnvironment : true
78- scriptType : ' ps'
79- scriptLocation : ' inlineScript'
80- inlineScript : |
81- $(Agent.TempDirectory)/.source-index/tools/UploadIndexStage1 -i .source-index/stage1output -n $(Build.Repository.Name) -s netsourceindexstage1 -b stage1
42+ - template : /eng/common/core-templates/steps/source-index-stage1-publish.yml
43+ parameters :
44+ binLogPath : ${{ parameters.binLogPath }}
0 commit comments