Skip to content

Commit

Permalink
Ignore Authenticate Reunion NuGet sources (#11145)
Browse files Browse the repository at this point in the history
* Ignore Authenticate Reunion NuGet sources

* Try install .net after provisioning run

* Fix identation
  • Loading branch information
rmarinho authored Nov 7, 2022
1 parent 0ace1bf commit 340dc2a
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions eng/pipelines/common/provision.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,6 @@ parameters:
provisionatorChannel: 'latest'

steps:
- task: UseDotNet@2 # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops
displayName: 'Use .NET SDK 6'
inputs:
packageType: sdk
version: 6.0.x

- pwsh: |
dotnet --version
dotnet --list-sdks
displayName: 'Show .NET SDK info'
# Prepare macOS
- ${{ if eq(parameters.platform, 'macos') }}:
- template: agent-cleanser/v1.yml@xamarin-templates
Expand Down Expand Up @@ -89,7 +78,6 @@ steps:
inputs:
certSecureFile: 'Components Mac Certificate.p12'


# Prepare Windows
- ${{ if eq(parameters.platform, 'windows') }}:
- powershell: |
Expand Down Expand Up @@ -117,6 +105,17 @@ steps:
condition: eq(variables['provisioningVS'], 'true')
# Prepare Both
- task: UseDotNet@2 # https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/tool/dotnet-core-tool-installer?view=azure-devops
displayName: 'Use .NET SDK 6'
inputs:
packageType: sdk
version: 6.0.x

- pwsh: |
dotnet --version
dotnet --list-sdks
displayName: 'Show .NET SDK info'
- pwsh: ./build.ps1 --target provision
displayName: 'Cake Provision'
condition: eq(variables['provisioningCake'], 'true')
Expand All @@ -134,14 +133,14 @@ steps:


# Prepare for Reunion packages
- ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
- task: NuGetAuthenticate@0
displayName: 'Authenticate Reunion NuGet sources'
inputs:
nuGetServiceConnections: Project.Reunion.nuget.internal
- pwsh: |
$path = '$(Build.SourcesDirectory)\NuGet.config'
[xml]$xml = Get-Content $path
$xml.configuration.RemoveChild($xml.configuration.disabledPackageSources)
$xml.Save($path)
displayName: 'Add "wasdk-internal" to NuGet.config'
# - ${{ if eq(variables['System.TeamProject'], 'devdiv') }}:
# - task: NuGetAuthenticate@0
# displayName: 'Authenticate Reunion NuGet sources'
# inputs:
# nuGetServiceConnections: Project.Reunion.nuget.internal
# - pwsh: |
# $path = '$(Build.SourcesDirectory)\NuGet.config'
# [xml]$xml = Get-Content $path
# $xml.configuration.RemoveChild($xml.configuration.disabledPackageSources)
# $xml.Save($path)
# displayName: 'Add "wasdk-internal" to NuGet.config'

0 comments on commit 340dc2a

Please sign in to comment.