Conversation
…s to fix 405 on upload-pipeline-artifact Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/317ff8e0-db0e-4179-a799-29b975b5aedd Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jamesadevine
May 6, 2026 17:23
View session
jamesadevine
approved these changes
May 6, 2026
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.
Summary
upload-pipeline-artifactwas failing with HTTP 405 on the container creation step becausePOST /_apis/resources/containersis served by ADO's FileContainer/distributedtask service (vstmr.dev.azure.com/{org}), not the main org URL (dev.azure.com/{org}). Hardcodingorg_urlas the base hit the wrong routing proxy, which has no POST handler for that path.Fix: Before Steps 1 & 2 (container create + file upload), the executor now resolves the correct service base URL via the resource areas API — the same mechanism the
azure-devops-node-apiuses internally:_apis/resources/containerscalls (Steps 1 & 2) use the resolvedlocationUrl_apis/build/builds/{id}/artifacts) is unaffected — it routes correctly via the main org URLorg_urlif the resource area lookup fails (on-premises ADO Server compatibility)Test plan
test_resolve_file_container_base_url_falls_back_on_errortest verifies the fallback path (connection refused → returns original org_url)