Fix source indexer failing official builds (#57336) (#57593)
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Tue, 17 Aug 2021 18:10:45 +0000 (20:10 +0200)
committerGitHub <noreply@github.com>
Tue, 17 Aug 2021 18:10:45 +0000 (20:10 +0200)
Works around https://github.com/dotnet/arcade/issues/7747 to unblock official builds.
This change will revert itself with the next Arcade update.

Co-authored-by: Viktor Hofer <viktor.hofer@microsoft.com>
eng/common/templates/job/source-index-stage1.yml

index b58d423..e60fdbc 100644 (file)
@@ -35,10 +35,8 @@ jobs:
       packageType: sdk
       version: 3.1.x
 
-  - task: UseDotNet@2
-    displayName: Use .NET Core sdk
-    inputs:
-      useGlobalJson: true
+  - script: ${{ parameters.sourceIndexBuildCommand }}
+    displayName: Build Repository
 
   - script: |
       dotnet tool install BinLogToSln --version $(SourceIndexPackageVersion) --add-source $(SourceIndexPackageSource) --tool-path .source-index/tools
@@ -46,9 +44,6 @@ jobs:
       echo ##vso[task.prependpath]$(Build.SourcesDirectory)/.source-index/tools
     displayName: Download Tools
 
-  - script: ${{ parameters.sourceIndexBuildCommand }}
-    displayName: Build Repository
-
   - script: BinLogToSln -i $(BinlogPath) -r $(Build.SourcesDirectory) -n $(Build.Repository.Name) -o .source-index/stage1output
     displayName: Process Binlog into indexable sln
     env: