More Questions on artifacts

Greetings!

One more newbie question :)
I want to create artifact in special place - let's say on C:\Product\. I wanna place /bin/Release/. there.
And the most important thing - bold I want result folder to be named like {build DateTime} + {vcs revision}.
So the desired artefact is C:\Product\20081010-12:23_2342

Please - tell me what string should I place in artefact path list????

5 comments
Comment actions Permalink

So you need these artifacts on each and every agent where the build is running or you want to create C:\Product\ on the server? Allowing to publish artifacts to absolute path on the server is not a good idea because of security issues. If you need such behavior you can write a plugin which will move some of the artifacts to the required place after the specific build is finished, or you can install agent on the same PC where server is installed and write a build script which will do the same.

--
Pavel Sher

0
Comment actions Permalink

Thanks, Pavel!

Ok, I'd try to reformulate - apart from C:\Product - is it possible?

And BTW, tell me please how to copy whole directory as an artifact? How can i zip/rar files, while producing an artefact?

0
Comment actions Permalink

At the moment TeamCity can't create archived artifacts for you, currently this should be done in a build script. As for destination folder name this can be done with help of service messages (http://www.jetbrains.net/confluence/display/TCD3/BuildScriptInteractionwithTeamCity#BuildScriptInteractionwithTeamCity-artPublishing)

It is possible to use references in artifacts paths on server (http://www.jetbrains.net/confluence/display/TCD3/SystemPropertiesofaBuild+Configuration#SystemPropertiesofaBuildConfiguration-ref), something like:
bin/Release/. => %system.build.vcs.number.1%

but unfortunately there is no predefined parameter for build start time.

To copy the whole directory structure (including subdirectories) you can use **:
bin/*/.* => dist

this pattern will copy all subdirectories from the bin directory while preserving the directory structure. Read more about this here: http://www.jetbrains.net/confluence/display/TCD3/Build+Artifact

--
Pavel Sher

0
Comment actions Permalink

Thanks so much for your support, Pavel - love your tool and love Saint-Petersburg also :)

>but unfortunately there is no predefined parameter for build start time.

BTW - can we have this feature in your tracker?

Edited by: Roger Taylor on Oct 9, 2008 11:34 PM

0
Comment actions Permalink

Regarding start time please watch/vote for this issue: http://jetbrains.net/tracker/issue/TW-4080
But again this could be done with help of plugin too.

--
Pavel Sher

0

Please sign in to leave a comment.