I found this learn post document and followed the instructions for a linux ubuntu deployment. The start.sh script fails at step 1 when it is trying to retrieve the list of available packages.
I've found that the error is in the step that gets the list of available packages for self-hosted angent, so I run the curl statement:
curl -LsS -u user:{PAT-TOKEN} -H "Accept:application/json" "https://{devps-organization}/{devops-project}/_apis/distributedtask/packages/agent?platform=linux-x64&top=1
in a command prompt and got this reply:
The controller for path '/{devops-project}/_apis/distributedtask/packages/agent' was not found or does not implement IController.
Furthermore I was not able to find documentation the "_apis/distributedtask/packages/agent" endpoint on Learn.
Is anyone being able to retrieve the package list from the project these days (I found evidence from other posts that this worked in the past), since the error I got seems to be the result of an undocumented api used after it was retired.
Thanks for helping
You seemed to pass the environment variable -e AZP_URL="<Azure DevOps instance>"
with a project name in it. The valid value for AZP_URL
should be like https://dev.azure.com/YourOrgName/
without any {devops-project}
.
You should be able to view those packages in your browser via https://dev.azure.com/<YourOrgName>/_apis/distributedtask/packages/agent?platform=linux-x64&top=1