Skip to content

Commit

Permalink
Fix format job; build with the same dotnet CLI that jitutils uses (do…
Browse files Browse the repository at this point in the history
  • Loading branch information
BruceForstall authored Nov 14, 2019
1 parent 45dc205 commit aa301ee
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eng/pipelines/coreclr/templates/format-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,14 @@ jobs:
displayName: ${{ format('Formatting {0}{1} {2}', parameters.osGroup, parameters.osSubgroup, parameters.archType) }}
helixType: 'format'
steps:
- task: DotNetCoreInstaller@0
- task: UseDotNet@2
# This should match what jitutils YML uses to build.
displayName: 'Install .NET Core SDK'
inputs:
packageType: 'sdk'
version: '2.1.402'
version: '3.x'
includePreviewVersions: true
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: PythonScript@0
displayName: Run tests/scripts/format.py
inputs:
Expand Down

0 comments on commit aa301ee

Please sign in to comment.