[Bug] az devops invoke --area build contains two resources named "changes" #1012
Labels
Comments
|
As a suggestion, could the definition be changed to: {
"area": "build",
"id": "54572c7b-bbd3-45d4-80dc-28be08941620",
"maxVersion": 6.0,
"minVersion": 2.0,
"releasedVersion": "5.1",
"resourceName": "buildchanges",
"resourceVersion": 2,
"routeTemplate": "{project}/_apis/{area}/builds/{buildId}/changes"
} |
|
Perhaps an alternative would allow the author to provide the --id instead of using area + resource? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When I use
az devops invokefor Builds - Get Build Changes it fails and prompts for parameters for Builds - Get Changes Between BuildsMy investigation suggests there are 2 endpoints with the same area and resourceName.
az devops invoke --query "[?area=='build' && resourceName=='changes']"produces the following:
[ { "area": "build", "id": "f10f0ea5-18a1-43ec-a8fb-2042c7be9b43", "maxVersion": 6.0, "minVersion": 2.1, "releasedVersion": "0.0", "resourceName": "changes", "resourceVersion": 3, "routeTemplate": "{project}/_apis/{area}/{resource}" }, { "area": "build", "id": "54572c7b-bbd3-45d4-80dc-28be08941620", "maxVersion": 6.0, "minVersion": 2.0, "releasedVersion": "5.1", "resourceName": "changes", "resourceVersion": 2, "routeTemplate": "{project}/_apis/{area}/builds/{buildId}/{resource}" } ]To Reproduce
Azure Cli Version: 2.7.0
Azure-Devops extension version: 0.18.0
Steps to reproduce the behavior:
fromBuildId or toBuildId is null. Supply a valid value and try again.The debug logs confirm that the 1st resource template is being used:
Expected behavior
Given that there are two endpoints with the same area and resource, it appears to be using the first one instead of the second. Is there a way to provide more information to the command-line to ensure the 2nd one is used?
The text was updated successfully, but these errors were encountered: