Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore Authenticate Reunion NuGet sources - net7 #11150

Merged
merged 2 commits into from
Nov 8, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 28 additions & 25 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 All @@ -110,7 +98,7 @@ steps:
PROVISIONATOR_CHANNEL: ${{ parameters.provisionatorChannel }}
AUTH_TOKEN_GITHUB_COM: $(github--pat--vs-mobiletools-engineering-service2)
# Provision Additional Software
- task: xamops.azdevex.provisionator-task.provisionator@1
- task: xamops.azdevex.provisionator-task.provisionator@2
displayName: 'Provision Additional Software'
condition: and(eq('${{ parameters.provisioning }}', 'true'),ne('${{ parameters.poolName }}', 'Azure Pipelines'))
inputs:
Expand All @@ -125,6 +113,22 @@ steps:
displayName: 'Setup MSBuild Paths'
condition: eq(variables['provisioningVS'], 'true')

# Prepare Both
- task: UseDotNet@2
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')

- task: PowerShell@2
condition: eq(variables['PrivateBuild'], 'true')
displayName: Setup Private Feeds Credentials
Expand All @@ -136,16 +140,15 @@ steps:
- pwsh: dotnet nuget locals all --clear
displayName: 'Clear all NuGet caches'


# 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'