Skip to content

Commit

Permalink
[build] .yaml changes for private fork & NuGet feeds (dotnet#6594)
Browse files Browse the repository at this point in the history
This brings over changes from `xamarin-android-private`.

With these changes, the private fork should be able to build `main` and push builds to an internal feed.
  • Loading branch information
jonathanpeppers authored Jan 14, 2022
1 parent 2fff97c commit 9fc53bb
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,20 @@ variables:
value: $[or(eq(variables['XA.RunAllTests'], true), eq(variables['IsMonoBranch'], true))]
- name: DotNetNUnitCategories
value: '& TestCategory != DotNetIgnore & TestCategory != HybridAOT & TestCategory != ProfiledAOT & TestCategory != MkBundle & TestCategory != MonoSymbolicate & TestCategory != PackagesConfig & TestCategory != StaticProject & TestCategory != Debugger & TestCategory != SystemApplication'
- ${{ if and(eq(variables['Build.DefinitionName'], 'Xamarin.Android'), ne(variables['Build.Reason'], 'PullRequest')) }}:
- ${{ if eq(variables['Build.DefinitionName'], 'Xamarin.Android-Private') }}:
- group: AzureDevOps-Artifact-Feeds-Pats
- group: DotNet-MSRC-Storage
- name: DotNetFeedCredential
value: dotnet6-internal-dnceng-internal-feed
- ${{ if ne(variables['Build.DefinitionName'], 'Xamarin.Android-Private') }}:
- name: DotNetFeedCredential
value: dnceng-dotnet6
- ${{ if and(or(eq(variables['Build.DefinitionName'], 'Xamarin.Android'), eq(variables['Build.DefinitionName'], 'Xamarin.Android-Private')), ne(variables['Build.Reason'], 'PullRequest')) }}:
- name: MicroBuildSignType
value: Real
- name: VSEngMacBuildPool
value: VSEng-Xamarin-RedmondMac-Android-Trusted
- ${{ if or(ne(variables['Build.DefinitionName'], 'Xamarin.Android'), eq(variables['Build.Reason'], 'PullRequest')) }}:
- ${{ if or(and(ne(variables['Build.DefinitionName'],'Xamarin.Android'), ne(variables['Build.DefinitionName'], 'Xamarin.Android-Private')), eq(variables['Build.Reason'], 'PullRequest')) }}:
- name: MicroBuildSignType
value: Test
- name: VSEngMacBuildPool
Expand Down Expand Up @@ -1282,7 +1290,7 @@ stages:
command: push
packagesToPush: $(System.DefaultWorkingDirectory)\nuget-signed\*.nupkg
nuGetFeedType: external
publishFeedCredentials: dnceng-dotnet6
publishFeedCredentials: $(DotNetFeedCredential)
condition: and(succeeded(), eq(variables['PushXAPackages'], 'true'))

- task: DownloadPipelineArtifact@2
Expand All @@ -1296,7 +1304,7 @@ stages:
command: push
packagesToPush: $(System.DefaultWorkingDirectory)\vs-msi-nugets\*.nupkg
nuGetFeedType: external
publishFeedCredentials: dnceng-dotnet6
publishFeedCredentials: $(DotNetFeedCredential)
condition: and(succeeded(), eq(variables['PushXAPackages'], 'true'))

- powershell: >-
Expand Down

0 comments on commit 9fc53bb

Please sign in to comment.