Skip to content

Commit

Permalink
Fetch AzureDevops Builds by finishTimeDescending (#7068)
Browse files Browse the repository at this point in the history
* fix(azuredevops): fix environment field

* fix(azuredevops): fetch build with queryOrder = finishTimeDescending
  • Loading branch information
d4x1 authored and action_bot committed Feb 29, 2024
1 parent b264482 commit f344481
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/python/plugins/azuredevops/azuredevops/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ def commits(self, org: str, project: str, repo_id: str):
return self.get(org, project, '_apis/git/repositories', repo_id, 'commits')

def builds(self, org: str, project: str, repository_id: str, provider: str):
return self.get(org, project, '_apis/build/builds', repositoryId=repository_id, repositoryType=provider, deletedFilter='excludeDeleted')
return self.get(org, project, '_apis/build/builds', repositoryId=repository_id, repositoryType=provider,
deletedFilter='excludeDeleted',
queryOrder="finishTimeDescending")

def jobs(self, org: str, project: str, build_id: int):
return self.get(org, project, '_apis/build/builds', build_id, 'timeline')
Expand Down

0 comments on commit f344481

Please sign in to comment.