REST access to obtain latest passed build artifacts (without filename)

Is it possible to retrieve the latest build artifacts from a passed build without the filename?

Im asking because as the version number changes on our maven builds, so does the generated artifact name.  We just want to grab the latest passed artifact from TeamCity using a simple bash/wget script.

N

1 comment
Comment actions Permalink

Hi,

You can use the following request to download all artifacts:

/repository/downloadAll/build configuration ID/.lastSuccessful

Also to find an artifact name you can get the list of artifacts using /repository/download/BUILD_TYPE_EXT_ID/.lastFinished/teamcity-ivy.xml, and then download needed artifact.
For more details see related doc section.

0

Please sign in to leave a comment.