I have a build pipeline and I need to download the logs generated from the build pipeline and save to some location in my repo. I need to know where these logs are stored on a Microsoft hosted agent from where I can copy to a path in my repos. Also, I don't want to use the below REST API to get the build logs -
GET https://dev.azure.com/{organization}/{project}/_apis/build/builds/{buildId}/logs?api-version=5.1