Skip to content

[Build] Fix apidocs pipeline (template repo, DocsApiLevel, JAVA_HOME)#11199

Open
jonathanpeppers wants to merge 4 commits intomainfrom
jonathanpeppers/fix-apidocs-pipeline-template-ref
Open

[Build] Fix apidocs pipeline (template repo, DocsApiLevel, JAVA_HOME)#11199
jonathanpeppers wants to merge 4 commits intomainfrom
jonathanpeppers/fix-apidocs-pipeline-template-ref

Conversation

@jonathanpeppers
Copy link
Copy Markdown
Member

@jonathanpeppers jonathanpeppers commented Apr 23, 2026

Fixes multiple issues preventing the apidocs pipeline (definitionId 15262) from running on main:

1. Template repo migration

The MicroBuildTemplate repo in 1ESPipelineTemplates has been deprecated — all its refs point to a commit that no longer contains the v1/ template files:

File /v1/1ES.Official.PipelineTemplate.yml not found in repository
https://devdiv.visualstudio.com/1ESPipelineTemplates/_git/MicroBuildTemplate

Fix: Update the repository resource from MicroBuildTemplate to 1ESPipelineTemplates and pin to refs/tags/release.

2. DocsApiLevel hardcoded to 36

DocsApiLevel was hardcoded to 36, but AndroidApiLevel is now 36.1. This caused a path mismatch: _UpdateExternalDocumentation built assemblies into the 36.1/ output directory, but _RunMdoc looked for them in 36/, resulting in mdoc: No assemblies specified.

Fix: Default DocsApiLevel to $(AndroidApiLevel) so it stays in sync.

3. Invalid JAVA_HOME path

The pipeline set useAgentJdkPath: false, which pointed JAVA_HOME to ~/android-toolchain/jdk-17 — a path that no longer exists on the Mac build agents. This caused the Gradle-based manifestmerger build to fail.

Fix: Remove the useAgentJdkPath: false override to use the agent's preinstalled JDK (the default behavior).

…eline

Without an explicit ref, Azure DevOps resolves to refs/heads/release
in the MicroBuildTemplate repo, where v1/1ES.Official.PipelineTemplate.yml
no longer exists.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 23, 2026 19:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins the 1ESPipelineTemplates/MicroBuildTemplate repository resource used by the API docs Azure DevOps pipeline to a stable tag so the referenced v1/1ES.*.PipelineTemplate.yml templates resolve correctly.

Changes:

  • Add ref: refs/tags/release to the 1esPipelines repository resource in the apidocs pipeline.

@jonathanpeppers jonathanpeppers marked this pull request as draft April 23, 2026 20:00
…dTemplate

The MicroBuildTemplate repo has been deprecated and no longer contains
the v1/ template files. The templates now live in the
1ESPipelineTemplates/1ESPipelineTemplates repo.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers jonathanpeppers changed the title [Build] Pin 1ES pipeline template to refs/tags/release in apidocs pipeline [Build] Fix apidocs pipeline by migrating from deprecated MicroBuildTemplate repo Apr 23, 2026
@jonathanpeppers

This comment was marked as outdated.

…value

DocsApiLevel was hardcoded to 36, but AndroidApiLevel is now 36.1.
This caused _RunMdoc to look for assemblies in the 36.1/ directory
while _UpdateExternalDocumentation built them into 36/, resulting
in 'No assemblies specified' from mdoc.

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

This comment was marked as outdated.

The pipeline was using useAgentJdkPath: false which sets JAVA_HOME to
~/android-toolchain/jdk-17, a path that no longer exists on the Mac
build agents. Switch to the default (useAgentJdkPath: true) to use
the agent's preinstalled JDK instead.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@jonathanpeppers
Copy link
Copy Markdown
Member Author

@jonathanpeppers jonathanpeppers changed the title [Build] Fix apidocs pipeline by migrating from deprecated MicroBuildTemplate repo [Build] Fix apidocs pipeline (template repo, DocsApiLevel, JAVA_HOME) Apr 24, 2026
@jonathanpeppers jonathanpeppers marked this pull request as ready for review April 24, 2026 16:44
@jonathanpeppers jonathanpeppers added the ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable). label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-review This PR is ready to review/merge, I think any CI failures are just flaky (ignorable).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants