排除 teamcity 工件中的文件类型
我正准备第一次自己设置 teamcity。我不得不说,在大多数方面都非常好而且简单。但是,我有一个问题尚未解决并找到任何相关信息。
当我想发布我的工件时,我想排除某些文件类型。
示例:
%system.agent.work.dir%\trunk\Source\Projects\Webproject.Web/Controllers => Webproject.Web/Controllers
但是,我不想复制文件夹中的所有 .cs 文件。我只需要文件夹。 是否可以仅复制文件夹而不复制内容,然后复制我需要的内容?或者,如果复制目录,我可以排除文件吗?
I'm just about to setup teamcity for the first time on my own. Very nice and simple in most ways I have to say. However, I have one issue that I haven't manage to solve and find any information about.
When I wanna publish my artifacts I want to exclude some file types.
example:
%system.agent.work.dir%\trunk\Source\Projects\Webproject.Web/Controllers => Webproject.Web/Controllers
However, I don't want to copy all the .cs files in the folder. I just need the folder.
Is it possible to copy just the folder and not the content, and then copy what ever content I need? Or can I exclude files if I copy a directory?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以添加一个 MSBUILD 目标,它为您准备“部署”包。我有以下内容(可能需要对您的项目进行一些更改):
因此,在 TC 构建中,我使用 MSBUILD 构建器,如下所示:
然后您可以使用
Website
目录作为您的工件。You can add a MSBUILD target which prepares the "deployment" package for you. I have the following (may need some changes for your project):
So, in the TC build, I use the MSBUILD builder like this:
You can then use the
Website
directory as your artifact.