Download a build artifact contained in an archive

Hello,

I am attempting to download a file contained in a build artifact but continually get an error 404.

This is what I am trying:
wget http://<svn-server>:8111/guestAuth/repository/download/archive/my.tgz/buildTypeId/bt4/.lastSuccessful/my.war

I obviously have the syntax wrong. What is the correct syntax to download the war file contained in a build artifact tar file?

This is the response:
HTTP request sent, awaiting response... 404 Not Found
2012-05-22 15:03:20 ERROR 404: Not Found.

Thanks,
-Dave

4 comments
Comment actions Permalink

Dave,

Here is pattern to access archive artifact:

..../repository/download/BUILD_TYPE_ID/BUILD_SPECIFICATION/<archive>!PATH_WITHIN_ARCHIVE

More details are available on this documentation page

0
Comment actions Permalink

Hi Nikita,

I have been over that documentation page a number of times...although since my current version of TeamCity is 6.5.5, I was looking at the 6.5 documentation.

This works:
http://<tc-server-ip>:8111/guestAuth/repository/download/bt4/.lastSuccessful/my.tgz

This fails with the Error 404 above:
http://<tc-server-ip>:8111/guestAuth/repository/download/bt4/.lastSuccessful/my.tgz!release/applications/apps/my.war

Is the ability to download a file from within a build artifact archive only available in TeamCity 7.0  and above?

Thanks,
-Dave

0
Comment actions Permalink

Dave,

You are right, downloading artifacts from archives is only supported in TeamCity 7.0

0
Comment actions Permalink

I installed TeamCity 7.0.3 today & downloading a file from within an archive works fine now.

-Dave

0

Please sign in to leave a comment.