Skip to content
1,719 changes: 883 additions & 836 deletions build-tools/automation/azure-pipelines-internal.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions build-tools/automation/azure-pipelines-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ resources:
type: git
name: DevDiv/Xamarin.yaml-templates
ref: refs/heads/main
- repository: maui
- repository: macios-devtools
type: github
name: dotnet/maui
ref: net11.0
name: dotnet/macios-devtools
ref: refs/heads/main
endpoint: xamarin

parameters:
Expand Down
19 changes: 13 additions & 6 deletions build-tools/automation/azure-pipelines-public.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ parameters:
# Repository resources
resources:
repositories:
- repository: macios-devtools
type: github
name: dotnet/macios-devtools
endpoint: public
ref: refs/heads/main
- repository: maui
type: github
name: dotnet/maui
Expand Down Expand Up @@ -81,10 +86,11 @@ stages:
submodules: recursive
persistCredentials: false

# Checkout a second repo to force multi-repo checkout behavior
# This small repository is intentionally unused; its checkout keeps the
# primary repository at s/android under Azure's multi-repo layout.
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: maui
path: s/maui
- checkout: macios-devtools
path: s/macios-devtools

- template: /build-tools/automation/yaml-templates/build-macos-steps.yaml
parameters:
Expand Down Expand Up @@ -141,9 +147,10 @@ stages:
submodules: recursive
persistCredentials: false

# Checkout a second repo to force multi-repo checkout behavior
- checkout: maui
path: s/maui
# This small repository is intentionally unused; its checkout keeps the
# primary repository at s/android under Azure's multi-repo layout.
- checkout: macios-devtools
path: s/macios-devtools

- script: |
sudo apt-get update
Expand Down
6 changes: 6 additions & 0 deletions build-tools/automation/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ resources:
type: git
name: DevDiv/Xamarin.yaml-templates
ref: refs/heads/main
- repository: macios-devtools
type: github
name: dotnet/macios-devtools
ref: refs/heads/main
endpoint: xamarin
- repository: maui
type: github
name: dotnet/maui
Expand Down Expand Up @@ -75,6 +80,7 @@ extends:
sourceRepositoriesToScan:
exclude:
- repository: yaml-templates
- repository: macios-devtools
- repository: maui
suppression:
suppressionFile: $(Build.SourcesDirectory)\.gdn\.gdnsuppress
Expand Down
5 changes: 3 additions & 2 deletions build-tools/automation/yaml-templates/build-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ stages:
resource: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.checkoutCommit }}

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# This small repository is intentionally unused; its checkout keeps the
# primary repository at s/android under Azure's multi-repo layout.
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: maui
- checkout: macios-devtools

- template: /build-tools/automation/yaml-templates/build-linux-steps.yaml
parameters:
Expand Down
5 changes: 3 additions & 2 deletions build-tools/automation/yaml-templates/build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ stages:
resource: ${{ parameters.repositoryAlias }}
commit: ${{ parameters.checkoutCommit }}

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# This small repository is intentionally unused; its checkout keeps the
# primary repository at s/android under Azure's multi-repo layout.
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: maui
- checkout: macios-devtools

- task: CodeQL3000Init@0
displayName: CodeQL 3000 Init
Expand Down
5 changes: 3 additions & 2 deletions build-tools/automation/yaml-templates/commercial-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ steps:
inputs:
forceReinstallCredentialProvider: true

# Always checkout a second resource to ensure we are using multi-repo checkout behavior
# This small repository is intentionally unused; its checkout keeps the
# primary repository at s/android under Azure's multi-repo layout.
# https://learn.microsoft.com/en-us/azure/devops/pipelines/repos/multi-repo-checkout?view=azure-devops#checkout-path
- checkout: maui
- checkout: macios-devtools

- task: CodeQL3000Init@0
displayName: CodeQL 3000 Init
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ steps:
installTestSlicer: ${{ parameters.installTestSlicer }}
installApkDiff: ${{ parameters.installApkDiff }}
androidSdkPlatforms: ${{ parameters.androidSdkPlatforms }}
use1ESTemplate: false
use1ESTemplate: ${{ parameters.use1ESTemplate }}
27 changes: 21 additions & 6 deletions build-tools/automation/yaml-templates/stage-package-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

parameters:
macTestAgentsUseCleanImages:
usePublicSetupTemplate: false
use1ESTemplate: true

stages:
Expand All @@ -21,9 +22,16 @@ stages:
workspace:
clean: all
steps:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
use1ESTemplate: ${{ parameters.use1ESTemplate }}
- ${{ if eq(parameters.usePublicSetupTemplate, true) }}:
- template: /build-tools/automation/yaml-templates/setup-test-environment-public.yaml
parameters:
jdkMajorVersion: $(DefaultJavaSdkMajorVersion)
useAgentJdkPath: true
use1ESTemplate: ${{ parameters.use1ESTemplate }}
Comment thread
jonathanpeppers marked this conversation as resolved.
Resolved
- ${{ else }}:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
use1ESTemplate: ${{ parameters.use1ESTemplate }}

- task: DownloadPipelineArtifact@2
inputs:
Expand Down Expand Up @@ -108,9 +116,16 @@ stages:
workspace:
clean: all
steps:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
use1ESTemplate: ${{ parameters.use1ESTemplate }}
- ${{ if eq(parameters.usePublicSetupTemplate, true) }}:
- template: /build-tools/automation/yaml-templates/setup-test-environment-public.yaml
parameters:
jdkMajorVersion: $(DefaultJavaSdkMajorVersion)
useAgentJdkPath: true
use1ESTemplate: ${{ parameters.use1ESTemplate }}
- ${{ else }}:
- template: /build-tools/automation/yaml-templates/setup-test-environment.yaml
parameters:
use1ESTemplate: ${{ parameters.use1ESTemplate }}

- task: DownloadPipelineArtifact@2
inputs:
Expand Down
Loading