更新:2007 年 11 月
The GenCheckinNotesUpdateWorkItems 工作會將變更集和工作項目與指定的組建產生關聯。同時,您可以選擇使用它來更新這些工作項目的 Microsoft.VSTS.Build.IntegrationBuild 欄位。相關聯的變更集和受影響的工作項目就是 LastLabel 和 CurrentLabel 屬性指定之版本之間已認可或受影響的變更集和工作項目。
參數
屬性 |
描述 |
|---|---|
TeamFoundationServerUrl |
指定 Team Foundation Server URL。例如,http://MyServer:8080。 |
BuildUri |
指定組建 URI。 |
BuildNumber |
指定 Team Foundation Build 組建編號。 |
CurrentLabel |
指定要與變更集和工作項目產生關聯的版本號碼標籤。一般而言,這個標籤就是目前組建中使用之原始檔的標籤。 |
LastLabel |
指定要與變更集和工作項目產生關聯的開始版本號碼標籤。一般而言,這個標籤就是上一個組建中使用之原始檔的標籤。 |
UpdateWorkItems |
Boolean 屬性,其中指定相關聯工作項目的 Microsoft.VSTS.Build.IntegrationBuild 是否應該使用組建編號更新。如需 Microsoft.VSTS.Build.IntegrationBuild 的詳細資訊,請參閱在工作項目類型中加入整合欄位。 |
備註
GenCheckinNotesUpdateWorkItems 工作定義於 Microsoft.TeamFoundation.Build.Tasks.VersionControl.dll 中。Microsoft.TeamFoundation.Build.targets 檔包含 GenCheckinNotesUpdateWorkItems 工作的執行個體 (Instance),而且 Team Foundation Build 會將它當做 GetChangeSetsAndUpdateWorkItems 目標的預設實作 (Implementation) 使用。
Team Foundation Build 電腦上的 <root>:\Program Files\MSBuild\Microsoft\VisualStudio\TeamBuild 資料夾包含 Microsoft.TeamFoundation.Build.targets 檔。
範例
下列範例會顯示在 Microsoft.TeamFoundation.Build.targets 檔中定義之 GenCheckinNotesUpdateWorkItems 工作的預設執行個體。
<GenCheckinNotesUpdateWorkItems
TeamFoundationServerUrl="$(TeamFoundationServerUrl)"
BuildUri="$(BuildURI)"
BuildNumber="$(BuildNumber)"
CurrentLabel="$(LabelName)$(LabelScope)"
LastLabel="$(LastGoodBuildLabel)"
UpdateWorkItems="$(UpdateAssociatedWorkItems)"
ContinueOnError="true" />
請參閱
工作
概念
參考
Label 命令 (Team Foundation 版本控制)