Fix ansible-test AZP build lookup.

This commit is contained in:
Matt Clay 2021-04-27 17:03:43 -07:00
parent be7de9844e
commit 877e5b3dfe
2 changed files with 4 additions and 2 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Use documented API to retrieve build information from Azure Pipelines.

View file

@ -227,9 +227,9 @@ class AzurePipelinesChanges:
repositoryId='%s/%s' % (self.org, self.project), repositoryId='%s/%s' % (self.org, self.project),
) )
url = '%s%s/build/builds?%s' % (self.org_uri, self.project, urlencode(parameters)) url = '%s%s/_apis/build/builds?api-version=6.0&%s' % (self.org_uri, self.project, urlencode(parameters))
http = HttpClient(self.args) http = HttpClient(self.args, always=True)
response = http.get(url) response = http.get(url)
# noinspection PyBroadException # noinspection PyBroadException