TFS Build automation

后端 未结 2 655
Happy的楠姐
Happy的楠姐 2021-01-28 13:28

I have TFS2010 building a project solution, which is a copier. The build is succesful but does nothing, ie. doesn\'t copy.

How would I get the triggered build to copy th

相关标签:
2条回答
  • 2021-01-28 14:18

    I can't edit our build definition templates because they are company wide.

    So I change the project file with extra post build steps.

    Just add a step in the post buildstep of the project that contains the copier. You can call your output executable.

    I do it for distributing my TFS builds to different release folders

    Add this step:

    "$(TargetPath)" to your project file.

    0 讨论(0)
  • 2021-01-28 14:21

    If you need the build process to invoke a program you need to edit the TFS Build Process Template.

    There are a number of resources on the net for this, a good one is by Ewald Hofman. You can also find details in the TFS 2010 book by Wrox.

    Once you are familiar with the Process Template you will need to add an InvokeProcess activity after the activities for the build has completed.

    Also, consider adding a If activity and setting an argument so you can control which builds do this and which don't - for example, do your CI builds need this step?

    0 讨论(0)
提交回复
热议问题