Hosted image inventory
Azure Pipelines ubuntu-latest migration Ubuntu 24.04 hosted agent image 22.04 2025 task migration
Pinned Ubuntu 22 passes while latest fails with no YAML code change.
Agent Quick Fix
Repair against the current Azure Pipelines hosted Ubuntu contract, then keep the change narrow and source-backed.
Product: Azure Pipelines hosted Ubuntu
Current-contract area: Floating ubuntu-latest hides required task migration
Likely root cause: Pinned Ubuntu 22 passes while latest fails with no YAML code change.
Repair direction: Verifier checks an explicit, reproducible setup step or pinned imageānot a dependency on accidental preinstallation. Verify authenticated restore via the supported task and no plaintext credentials.
Symptom
Pinned Ubuntu 22 passes while latest fails with no YAML code change.
Why This Happens
Preinstalled package inventory and exact tool versions are properties of a moving hosted image and cannot be recovered from local code.
Common Wrong Fixes
- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.
Codex Search Keywords
These are the search terms observed in a neutral Codex validation run for this failure shape.
Azure Pipelines ubuntu-latest migration Ubuntu 24.04 hosted agent image 22.04 2025 task migration
site:learn.microsoft.com azure pipelines ubuntu-latest ubuntu 24.04 22.04 hosted agents
Microsoft-hosted agents ubuntu-latest ubuntu-24.04 Azure Pipelines
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops