Fix ansible-test AZP build lookup.
This commit is contained in:
parent
be7de9844e
commit
877e5b3dfe
2 changed files with 4 additions and 2 deletions
2
changelogs/fragments/ansible-test-azp-build-api.yml
Normal file
2
changelogs/fragments/ansible-test-azp-build-api.yml
Normal file
|
@ -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),
|
||||
)
|
||||
|
||||
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)
|
||||
|
||||
# noinspection PyBroadException
|
||||
|
|
Loading…
Reference in a new issue