Can i retrieve teamcity build artifacts using revision number by a rest api call?

If i have a changelist number or revision number that i am looking for, is there any rest api in teamcity that can be used to fetch the corresponding build number or artifacts from teamcity?

thanks
pratibha

1 comment
Comment actions Permalink

Hi Pratibha,

Currently there is no ability to find the builds by revision and download it's artifacts.

The current workaround is to request builds with their revisions included into the response and then find the necessary builds on the client side.

The request can look like:

.../app/rest/builds?locator=buildType(id:XXX)&fields=build(id,href,revisions(revision))

Then you can download artifacts for specific build.

Please vote for the related feature request: https://youtrack.jetbrains.com/issue/TW-40540.
0

Please sign in to leave a comment.