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
Please sign in to leave a comment.
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.
Hello Eduardo,
To download artifact from the last successful in a specific branch, add the "" 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.
Hi Alina,
It's right, I tested it and works.
Thank you :)