Teamcity 工件路径所需的建议
对于 .NET 开发人员来说,Teamcity 工件路径并不是非常简单。
我所做的每个项目都有一个名为 BuildTools 的文件夹,其中包含名为 Drops 和 Inputs 的文件夹(drops 是报告,输出输入是各种命令行应用程序的配置文件)。
BuildTools/Drops/NDependOut => GenericSolution/Drops/NDepend
这是正确的吗? BuildTools 来自(自定义)签出目录的根目录,然后 GenericSolution 来自工件路径的根目录(称为“Artifacts”文件夹)。
我遇到的另一个问题是 NDepend 报告在与 .html 文件相同的文件夹中包含大量图像等。我该如何上传这个?我是否上传整个文件夹(在这种情况下,上面的语法正确吗?)
For a .NET Developer, the Teamcity artifact paths are not very straightforward.
Per project I do, I have a folder called BuildTools and, within it, folders called Drops and Inputs (drops being the reports and outputs inputs being the config files for various command line apps).
BuildTools/Drops/NDependOut => GenericSolution/Drops/NDepend
Is this correct? BuildTools is from the root of the (custom) checkout dir, and then GenericSolution is from the root of the artifacts path (Called "Artifacts" folder).
The other problem I have is that the NDepend report has a lot of images etc in the same folder as the .html file. How would I upload this? Do I upload the entire folder (in which case, is the syntax above correct?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
一般来说,这是正确的。 TeamCity 可以选择在发布之前压缩工件。为此,请使用以下语法
Folder/folder/*/ => destfolder/archive.zip
另一个技巧是使用 TeamCity 服务消息从构建脚本动态发布工件。
In general this is right. TeamCity has an option to zip artifacts before publish. For that use the following syntax
Folder/folder/*/ => destfolder/archive.zip
Another trick is to use TeamCity service message to publish artifacts dynamically from build script.