Skip to content

[ci] Use 1ES outputs for Android Tools logs#12092

Open
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers-fix-1es-pipeline-artifact
Open

[ci] Use 1ES outputs for Android Tools logs#12092
jonathanpeppers wants to merge 1 commit into
mainfrom
jonathanpeppers-fix-1es-pipeline-artifact

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

The official Xamarin.Android pipeline fails template validation because 1ES Pipeline Templates prohibit PublishBuildArtifacts@1.

Use 1ES templateContext.outputs to publish Android Tools logs from official builds. Keep the existing PublishBuildArtifacts@1 path for the shared public pipeline template, which does not use 1ES.

  • Useful description of why the change is necessary.
  • Links to issues fixed: AZDO build 14643527
  • Unit tests: Not applicable; this changes pipeline YAML only.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 21a4f3cd-78ae-4c02-b3aa-6123222a7599
Copilot AI review requested due to automatic review settings July 13, 2026 21:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the in-repo Azure DevOps pipeline templates so the official Xamarin.Android (1ES) pipeline can publish Android Tools build logs without using PublishBuildArtifacts@1, which is blocked by 1ES template validation.

Changes:

  • Add a use1ESTemplate boolean parameter to the Android Tools test stage template to switch artifact publishing behavior.
  • For 1ES runs, publish logs via templateContext.outputs (pipelineArtifact) instead of PublishBuildArtifacts@1.
  • Enable use1ESTemplate: true for the official pipeline’s invocation of the Android Tools test stage.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
build-tools/automation/yaml-templates/stage-xamarin-android-tools-tests.yaml Adds use1ESTemplate switch and uses 1ES templateContext.outputs to publish Android Tools logs in official builds while preserving the existing PublishBuildArtifacts@1 behavior for non-1ES pipelines.
build-tools/automation/azure-pipelines.yaml Sets use1ESTemplate: true when invoking the Android Tools tests stage for the official (1ES) pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants