TeamCity颠覆标签
我正在尝试标记由多个签出组成的构建,如下所示: +根TeamCity颠覆标签,teamcity,Teamcity,我正在尝试标记由多个签出组成的构建,如下所示: +根 +-主干 +--文件夹1 +--文件夹2 +-标签 +--项目A +---Build-123 +----文件夹1 +----文件夹2 其中,Build-123中的123是内部版本号 我试图通过使用以下标签规则来实现这一点: /Root/trunk/Folder1=>/Root/tags/ProjectA /Root/trunk/Folder2=>/Root/tags/ProjectA 这种标签模式: 生成-%system.BUILD.numb
+-主干
+--文件夹1
+--文件夹2
+-标签
+--项目A
+---Build-123
+----文件夹1
+----文件夹2
其中,Build-123中的123是内部版本号 我试图通过使用以下标签规则来实现这一点: /Root/trunk/Folder1=>/Root/tags/ProjectA
/Root/trunk/Folder2=>/Root/tags/ProjectA 这种标签模式: 生成-%system.BUILD.number% 我希望TeamCity能够创建BUILD-123标记,并将Folder1和Folder2的内容复制到其中。但是,我得到以下错误: 失败:未能设置标签“BUILD-123”:Svn标签失败:无法将“Root/trunk/Folder1”、“Root/trunk/Folder2”复制到同一目录“Root/tags/ProjectA/CO-BUILD-123”
我将TeamCity 5与Subversion 1.6一起使用,这似乎是SVN方面的一个限制。我找到的唯一解决方案是直接调用SVN,首先创建目标文件夹(mkdir),然后使用svnCopy将每个源文件复制到该文件夹中。请阅读本主题: 我想你需要这样的规则
/Root/trunk=>/Root/Tags/ProjectA
或
取决于存储库根所在的位置。似乎我们需要有如下标签规则
trunk => tags # the trunk contains the root of my project
branches/*/ => tags # a branch usually contains the a copy of the root of the project
tags/*/ => tags # a tag usually contains the a copy of the root of the project
这将启用(重新)标记分支和标记,而无需显式设置它们的名称。
不幸的是,TeamCity没有这样的通用规则
trunk => tags # the trunk contains the root of my project
branches/*/ => tags # a branch usually contains the a copy of the root of the project
tags/*/ => tags # a tag usually contains the a copy of the root of the project