We have a TeamCity/Octopus setup that runs great for several projects.
A new client wants access to the source code during development. Is it possible to copy code from our TFS to an other TFS using TeamCity? It does not need to be real-time. Daily copies are OK.
Not sure if we should use TeamCity for this or if there are possibilities within TFS itself.
You could setup a daily build schedule and use the TFS command line utilities to transfer the files to another server. You'll probably get all kinds of sync issues along the way, unless you always take your own solution as the current situation.
Look at tf.exe
, especially the workspace
, workfold
commands and add
, delete
, and optionally destroy
. Complete the job with a tf checkin
.
Process as follows:
tf workspace /new
tf workfold /map
tf get /recursive
tf workspace /new
tf workfold /map
to a new folder that's not mapped to the source TFS server.tf delete * /recursive
tf checkin /recursive
xcopy
tf add * /recursive
tf checkin * /recursive
tf workspace /delete
PS: if you move to git, this all becomes a lot easier, since the distributed nature of git is kind of meant for scenarios like these.