diff --git a/eng/pipelines/templates/jobs/ci.mgmt.yml b/eng/pipelines/templates/jobs/ci.mgmt.yml index ae6645110a58..e2d22e2d2fc8 100644 --- a/eng/pipelines/templates/jobs/ci.mgmt.yml +++ b/eng/pipelines/templates/jobs/ci.mgmt.yml @@ -15,6 +15,14 @@ jobs: steps: #- script: "echo $(system.pullrequest.pullrequestnumber), https://github.com/$(build.repository.id), https://github.com/$(build.repository.ID)" - template: /eng/pipelines/templates/steps/install-dotnet.yml + - task: UseDotNet@2 + displayName: 'Use .NET Core 3.1 SDK' # We still need .NET Core 3.1 for .NET Track 1 SDK + retryCountOnTaskFailure: 3 + inputs: + # AspNetCore runtime pack can't be installed outside of SDK and we need it for intergation tests + packageType: sdk + performMultiLevelLookup: true + version: "3.1.x" - script: | if "$(BuildConfiguration)" == "Release" (set SkipTests=true) else (set SkipTests=false) dotnet msbuild mgmt.proj /v:m /t:CreateNugetPackage /p:Configuration=$(BuildConfiguration) /p:SkipTests=%SkipTests% /p:PackageOutputPath=$(Build.ArtifactStagingDirectory) /p:Scope=${{ parameters.Scope }} /p:ForPublishing=${{ parameters.ShouldPublish }} $(loggingArgs) $(RPScopeArgs)" @@ -70,6 +78,14 @@ jobs: AgentImage: $(OSVmImage) - script: "echo $(system.pullrequest.pullrequestnumber), http://github.com/$(build.repository.id), http://github.com/$(build.repository.ID)" - template: /eng/pipelines/templates/steps/install-dotnet.yml + - task: UseDotNet@2 + displayName: 'Use .NET Core 3.1 SDK' # We still need .NET Core 3.1 for .NET Track 1 SDK + retryCountOnTaskFailure: 3 + inputs: + # AspNetCore runtime pack can't be installed outside of SDK and we need it for intergation tests + packageType: sdk + performMultiLevelLookup: true + version: "3.1.x" - script: "dotnet msbuild mgmt.proj /v:n /t:RunTests /p:Scope=${{ parameters.Scope }} /p:ForPublishing=${{ parameters.ShouldPublish }} /clp:ShowtimeStamp $(RPScopeArgs)" displayName: "Build & Run Tests" - task: PublishTestResults@2