How to get the updated argument(s) of a build process template refreshed in 'Process' section of a build definition?

感情迁移 提交于 2019-12-01 05:23:58

问题


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?


回答1:


  1. Use the below script to delete the registed build process template in Database:

    use Tfs_YourTeamCollectionName; delete from tbl_BuildProcessTemplate where ProcessTemplateID = 'Your ProcessTemplateID';

  2. 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!




回答2:


Within the arugments there is a property called "Metadata" as shown in the picture below. Click on the button at the right end and a window should pop up as shown in the second picture. Enter the name of the new variable in the Parameter Name and enter the other details (Display name etc). Save and check-in the build definition and you should be good to go.



来源:https://stackoverflow.com/questions/21004379/how-to-get-the-updated-arguments-of-a-build-process-template-refreshed-in-pro

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