How to create custom folder from the release folder of Windows Work flow for TFS Build process?

女生的网名这么多〃 提交于 2019-12-12 01:53:46

问题


I have used the
/p:GenerateProjectSpecificOutputFolder=True for creating build for each and every project in my solution and now i wanted to customerize the folder structure on my needs. How can we achieve this?

enter image description here


回答1:


If you are using XAML build, you can customize Binaries folder in TFS Team Build by modifying the build process template. Adding CreateDirectory Activity and FindMatchingFiles activity are necessary, following this blog for more details.

If you use the new build system, that will be much easier to manage artifacts. With task Publish Build Artifacts, you can specify contents in the task, also you can add as many Publish Build Artifacts task as you want to manage artifacts. More details, check http://www.codewrecks.com/blog/index.php/2015/06/30/manage-artifacts-with-tfs-build-vnext/




回答2:


Alternatively you can extend your build definition with a PowerShell script at different points within the build:

  • Pre-build
  • Post-build
  • Pre-test
  • Post-test

Note I am using the TfvcTemplate.12.xaml template. This is the build template that comes with TFS 2013.



来源:https://stackoverflow.com/questions/35501542/how-to-create-custom-folder-from-the-release-folder-of-windows-work-flow-for-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!