[ci] Use 1ES outputs for Android Tools logs#12092
Open
jonathanpeppers wants to merge 1 commit into
Open
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 21a4f3cd-78ae-4c02-b3aa-6123222a7599
Contributor
There was a problem hiding this comment.
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
use1ESTemplateboolean parameter to the Android Tools test stage template to switch artifact publishing behavior. - For 1ES runs, publish logs via
templateContext.outputs(pipelineArtifact) instead ofPublishBuildArtifacts@1. - Enable
use1ESTemplate: truefor 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The official Xamarin.Android pipeline fails template validation because 1ES Pipeline Templates prohibit
PublishBuildArtifacts@1.Use 1ES
templateContext.outputsto publish Android Tools logs from official builds. Keep the existingPublishBuildArtifacts@1path for the shared public pipeline template, which does not use 1ES.