Fix ansible-test AZP build lookup.

pull/74473/head
Matt Clay 4 years ago
parent be7de9844e
commit 877e5b3dfe

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

@ -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

Loading…
Cancel
Save