[stable-2.10] Fix ansible-test AZP build lookup.

(cherry picked from commit 877e5b3dfe)

Co-authored-by: Matt Clay <matt@mystile.com>
pull/74619/head
Matt Clay 4 years ago
parent 369af59c6c
commit 357714a7c4

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

@ -230,9 +230,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