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

[ci] Use hosted Linux build pool for PR builds #7976

Merged
merged 2 commits into from
Apr 25, 2023
Merged
Show file tree
Hide file tree
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
11 changes: 10 additions & 1 deletion build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,21 @@ variables:
value: Azure Pipelines
- name: MacBuildPoolImage
value: internal-macos12
- name: LinuxBuildPoolName
value: android-devdiv-ubuntu-vmss
- name: LinuxBuildPoolImage
value: ''
- ${{ 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: MacBuildPoolName
value: VSEng-Xamarin-RedmondMac-Android-Untrusted
- name: MacBuildPoolImage
value: ''
- name: LinuxBuildPoolName
value: Azure Pipelines
- name: LinuxBuildPoolImage
value: ubuntu-22.04
- name: DisablePipelineConfigDetector
value: true

Expand Down Expand Up @@ -277,7 +285,8 @@ stages:
# Check - "Xamarin.Android (Linux > Tests > MSBuild)"
- job: linux_tests_smoke
displayName: Linux > Tests > MSBuild
pool: android-devdiv-ubuntu-vmss
pool:
vmImage: ubuntu-22.04
timeoutInMinutes: 180
workspace:
clean: all
Expand Down
7 changes: 5 additions & 2 deletions build-tools/automation/yaml-templates/build-linux.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
buildPool: android-devdiv-ubuntu-vmss
buildPoolName: $(LinuxBuildPoolName)
buildPoolImage: $(LinuxBuildPoolImage)
buildResultArtifactName: Build Results - Linux
checkoutCommit: ''
checkoutPath: 's/xamarin-android'
Expand All @@ -22,7 +23,9 @@ stages:
jobs:
- job: ${{ parameters.jobName }}
displayName: ${{ parameters.jobDisplayName }}
pool: ${{ parameters.buildPool }}
pool:
name: ${{ parameters.buildPoolName }}
vmImage: ${{ parameters.buildPoolImage }}
timeoutInMinutes: 180
workspace:
clean: all
Expand Down