Can I download artifacts with wget?

Hey all,

Is it possible to somehow supply HTTP AUTH credentials to download
artifacts?

Doing a wget on
http://xxxx:8111/repository/download/bt2/284:id/bulletinmail-webapp-4.0.5-130-46388.war
just gives me a login.html file :(

I understand I can export the artifacts to an ivy repository which I
assume I can use http auth with, but not sure if this gives the same
urls as I see in the artifacts tab of a build?

2 comments

Hello Mark,

Is it possible to somehow supply HTTP AUTH credentials to download artifacts?


Yes, that should be possible according to
http://www.jetbrains.net/confluence/display/TCD/PatternsForAccessingBuildArtifacts

"Basic authentication is required for accessing artifacts by this URLs with /httpAuth/
prefix. You can use existing TeamCity username and password in basic authentication settings."

/httpAuth/repository/download/BUILD_TYPE_ID/.lastFinished/ARTIFACT_PATH

I understand I can export the artifacts to an ivy repository which I assume I can use
http auth with, but not sure if this gives the same urls as I see in the artifacts tab
of a build?


Hmm, as far as I understand it, TC can act as an Ivy repository, but I don't know if it
is able to explicitly upload anything...


HTH,
Sascha

0

Sascha Weinreuter wrote:


Yes, that should be possible according to
http://www.jetbrains.net/confluence/display/TCD/PatternsForAccessingBuildArtifacts


Excellent. Must spend some more time reading those docs :)

Cheers

0

Please sign in to leave a comment.