Downloading artifacts with http when the exact artifact names are unknown

To continue my string of questions:

With regards to the wiki article on "Patterns for Accessing Build Artifacts," we have been using an MSBuild task to download build artifacts to machines that cannot build them (such as when they are built with VS2003 and it isn't installed, but VS2005 is).

This has been working for us so far, although adding all of the file names to the build script has been tedious and error prone. However, now we would like to download the output from an ASP.Net 2.0 build. These builds include a hash in the compiled file names which can and does change quite often. Thus, we are never sure what the file names will be. (Leave it to Microsoft to create a non-deterministic DLL filename, it played havoc with our installers as well.)

Is there any method of determining what the complete list of artifacts were for a .lastSuccesful or .lastFinished build? Is this something we can access with XML-RPC or an RSS-type feed that can be processed by a Ruby or Python script? I haven't found a way so far.

I'd like to process a list retrieved from the server, then use Ruby to fetch the files and stage a local build or prepare an integration test with the latest binaries.

2 comments

Hello,

You can try to parse teamcity-ivy.xml file accessible by URL:
http:///repository/download//latest.lastSuccessful/teamcity-ivy.xml i.e. it is in the root of the artifacts directory. This file is generating by TeamCity on every request and it contains list of all of the artifacts in XML format. -- Pavel Sher Software Developer JetBrains, Inc. http://www.jetbrains.com "Develop with pleasure!" "Ryan Maki" ]]> wrote in message
news:16939205.1204850236327.JavaMail.itn@is.intellij.net...

To continue my string of questions:

>

With regards to the wiki article on "Patterns for Accessing Build
Artifacts," we have been using an MSBuild task to download build artifacts
to machines that cannot build them (such as when they are built with
VS2003 and it isn't installed, but VS2005 is).

>

This has been working for us so far, although adding all of the file names
to the build script has been tedious and error prone. However, now we
would like to download the output from an ASP.Net 2.0 build. These builds
include a hash in the compiled file names which can and does change quite
often. Thus, we are never sure what the file names will be. (Leave it to
Microsoft to create a non-deterministic DLL filename, it played havoc with
our installers as well.)

>

Is there any method of determining what the complete list of artifacts
were for a .lastSuccesful or .lastFinished build? Is this something we can
access with XML-RPC or an RSS-type feed that can be processed by a Ruby or
Python script? I haven't found a way so far.

>

I'd like to process a list retrieved from the server, then use Ruby to
fetch the files and stage a local build or prepare an integration test
with the latest binaries.



0

Perfect, that's just what I was looking for, thanks!

0

Please sign in to leave a comment.