How to download an artifact from last success branch build

Hi,

I know how to donwload from the master:
http://teamcity:8111/guestAuth/repository/download/<buildTypeId>/.lastSuccessful/<artifactName>

But I need to donwload an antifact from last success build in another branch.

Thank you very much in advance.

Best regards,
Eduardo Costa

3 comments

I found another thread with this subject:
https://devnet.jetbrains.com/message/5523781#5523781

The awser is:
http://teamcity:8111/guestAuth/repository/download/<buildTypeId>/.lastSuccessful/<artifactName>?branch=<branchName>

I will test if works.

0

Hello Eduardo,


To download artifact from the last successful in a specific branch, add the "
?branch=<branch_name>
" parameter at the end of the corresponding URL. However it's recommended to use REST API to download artifacts as it provides build selection facilities and allows for artifacts listing.
0

Hi Alina,

It's right, I tested it and works.

Thank you :)

0

Please sign in to leave a comment.