none
Copy Source Code to Drop Location

    Question

  • Hello,

    I've managed to configure the build server so that it is successfully building our projects. I'm going to set up a build definition for each project as well as an 'Entire Source' definition. 

    Is it possible to copy the actual source code of the build as well as the binary to the drop folder? We need to be able to have an exact backup of each source code state per build.

    Also, is it possible to also add a task somehow to copy the compiled binary BACK TO the references folder (we have a server share with the latest files). 

    Thanks,

    Adam

    Tuesday, January 22, 2013 12:42 PM

Answers

  • Hi,

    Yes you can do this in two manners.

    1. Add a copy task to your workflow and copy the files

    2. Add a Get Latest Version Task to your workflow, setup a workspace that point to the drop directory and get latest version of files in here.

    For your second question, you can add a copy task as well.

    You can find very good pointers and guides to modify your build definition on this blog !

    http://www.ewaldhofman.nl/post/2010/04/20/Customize-Team-Build-2010-e28093-Part-1-Introduction.aspx

    Hope this helps !


    Please mark as answer if my answers are useful!
    René van Osnabrugge
    MVP Visual Studio ALM
    W: www.delta-n.nl
    B: osnabrugge.wordpress.com
    T: @renevo

    Tuesday, January 22, 2013 1:12 PM
  • Instead of copying and waste hard drive space and network bandwidth, set the Label Sources in the build definition to true and that should label the source code in the version control repository. In case you need to access that code, you can always download it.

    Let me know if you need more information.

    Cheers


    Ahmed is an independent consultant in Ottawa, Canada specialized in .NET, Biztalk, WCF, WPF, TFS and other Microsoft technologies.

    Blog: http://lajak.wordpress.com

    Twitter: ahmedalasaad

    Tuesday, January 22, 2013 7:16 PM

All replies

  • Hi,

    Yes you can do this in two manners.

    1. Add a copy task to your workflow and copy the files

    2. Add a Get Latest Version Task to your workflow, setup a workspace that point to the drop directory and get latest version of files in here.

    For your second question, you can add a copy task as well.

    You can find very good pointers and guides to modify your build definition on this blog !

    http://www.ewaldhofman.nl/post/2010/04/20/Customize-Team-Build-2010-e28093-Part-1-Introduction.aspx

    Hope this helps !


    Please mark as answer if my answers are useful!
    René van Osnabrugge
    MVP Visual Studio ALM
    W: www.delta-n.nl
    B: osnabrugge.wordpress.com
    T: @renevo

    Tuesday, January 22, 2013 1:12 PM
  • Instead of copying and waste hard drive space and network bandwidth, set the Label Sources in the build definition to true and that should label the source code in the version control repository. In case you need to access that code, you can always download it.

    Let me know if you need more information.

    Cheers


    Ahmed is an independent consultant in Ottawa, Canada specialized in .NET, Biztalk, WCF, WPF, TFS and other Microsoft technologies.

    Blog: http://lajak.wordpress.com

    Twitter: ahmedalasaad

    Tuesday, January 22, 2013 7:16 PM