如何获得在构建定义的“过程”部分更新生成过程模板的更新参数(S)? [英] How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?
问题描述
对于建立流程模板
,我们可以添加/删除/修改它的参数列表,并用它作为构建/工作流程步骤中的变量。我读了不错的导<一个href=\"http://www.ewaldhofman.nl/post/2010/04/27/Customize-Team-Build-2010-e28093-Part-2-Add-arguments-and-variables.aspx\"相对=nofollow>这里
我克隆模板的 DefaultTemplate.11.1.xaml 到 sayHello的-DefaultTemplate.11.1.xaml
并通过的Visual Studio 2012进行编辑。我第一次添加一个参数,名为的TestMessage
。我查一下我的变更到源控制。
然后,我创建一个构建定义的 sayHelloBuild 的基于此模板。当我去到过程
标签,我可以在杂项部分中看到的TestMessage
。我保存构建定义。试图排队它,它就会成功了。
这里谈到的问题。我添加名为模板 ABBCCC
并签入源$ C $ C另一种说法。但是,当我编辑的构建定义的 sayHelloBuild 的,我看不到 ABBCCC
在过程
设置页为 MyArugment01
一样。
我怎样才能获得的参数列表刷新?
-
使用下面的脚本删除数据库中的临时用户构建过程模板:
使用Tfs_YourTeamCollectionName;
从tbl_BuildProcessTemplate删去ProcessTemplateID ='您ProcessTemplateID'; -
再创建新的构建定义。
数据库名称是您的TFS团队集合名称例如Tfs_YourTeamCollection您的TFS服务器后端的SQL Server英寸我使用TFS 2012
希望它帮助!
For a build process template
, we can add/remove/edit the argument list of it and use it as variables within the build/work-flow steps. I reading the nice guide here
I'm cloning the template DefaultTemplate.11.1.xaml to sayHello-DefaultTemplate.11.1.xaml
and edit it via Visual Studio 2012. I first added one argument, called TestMessage
. I check in my changeset to the Source Control.
Then I create a build definition sayHelloBuild based on this template. And when I go to the Process
tab, I can see TestMessage
in the Misc section. I save the build definition. Trying to queue it and it gets succeeded.
Here comes the issue. I added another argument for the template named ABBCCC
and checkin the source code. But when I edit the build definition sayHelloBuild, I cannot see ABBCCC
in the Process
tab as MyArugment01
does.
How can I get the argument list refreshed?
Use the below script to delete the registed build process template in Database:
use Tfs_YourTeamCollectionName; delete from tbl_BuildProcessTemplate where ProcessTemplateID = 'Your ProcessTemplateID';
Create new build definition again.
The database name is your TFS team collection name e.g. Tfs_YourTeamCollection in the backend SQL Server of your TFS server. I'm using TFS 2012.
Hope it helps!
这篇关于如何获得在构建定义的“过程”部分更新生成过程模板的更新参数(S)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!