giovedì 31 maggio 2012 19:05
We need to make an "offline" installation package during stage build, which we can use for installation on customers application server. I have read this excellent post, and using the following MSBuild arguments in the Build Definition, a package zip file is produced:
However, the package file(s) (we have a 3 web projects) is located deep down the drops folder, so I want to move the package files into a file share (making in it easier for our test manager to copy the files to the staging server). Now - I searched the web all day, but haven't found any solution.
Any help to point in the right direction will be greatly appreciated
Tutte le risposte
giovedì 31 maggio 2012 23:38Since you'll be able to determine the location of the files, you can use the RoboCopy activity from the Community TFS Build Extensions. Add the activity into your build template after the package is built and you should be good.
DevBiker (aka J Sawyer)
Microsoft MVP - Sql Server (StreamInsight)
If I answered your question, please mark as answer.
If my post was helpful, please mark as helpful.
venerdì 1 giugno 2012 07:31
Thank you for your quick reply. I haven't any experience modifying the build template - but there are plenty how-to's out there, so I think I can manage. One question before I start - this change should only apply to our nightly build, not when building inside VS2010 or continous integration. How do I achieve this?
sabato 2 giugno 2012 08:26
you can create a custom activity to do it. please see this post and links in my answer in this post.
- Proposto come risposta Vicky SongModerator lunedì 4 giugno 2012 03:18
mercoledì 6 giugno 2012 10:27
My solution contains serveral projects, but at the moment I only want deploy 2 web projects. So I need these 2 projects to be copied - nothing else. How do I achieve this with your copy activity? As far as I can see, your copy activity will copy any projects being build in the entire solution. Or am I missing out something?
venerdì 8 giugno 2012 06:34Moderatore
Yes, it is possible for you to choose to copy the correct package files to the destination path. And I think that one simpler way for you is to use InvokeProcess activity to call the xcopy more than one time to copy more than one files from drive A to drive B. For further information about xcopy command, see: http://technet.microsoft.com/en-us/library/bb491035.aspx
And please also take a look at step 11-16 in this walkthrough for further information about how to call xcopy in a process activity:http://geekswithblogs.net/jakob/archive/2010/05/14/building-visual-studio-setup-projects-with-tfs-2010-team-build.aspx
Vicky Song [MSFT]
MSDN Community Support | Feedback to us
- Contrassegnato come risposta Vicky SongModerator martedì 12 giugno 2012 06:01