Skip to content

Commit

Permalink
Fix ansible-test AZP build lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclay committed Apr 28, 2021
1 parent be7de98 commit 877e5b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/ansible-test-azp-build-api.yml
@@ -0,0 +1,2 @@
bugfixes:
- ansible-test - Use documented API to retrieve build information from Azure Pipelines.
4 changes: 2 additions & 2 deletions test/lib/ansible_test/_internal/ci/azp.py
Expand Up @@ -227,9 +227,9 @@ def get_successful_merge_run_commits(self): # type: () -> t.Set[str]
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
Expand Down

0 comments on commit 877e5b3

Please sign in to comment.