简体   繁体   English

TFS2015 vNext 构建签入 TFVC

[英]TFS2015 vNext build check-in TFVC

I have a XAML build who I migrated to vNext build.我有一个 XAML 版本,我将其迁移到 vNext 版本。 One step is a batch execution.一个步骤是批量执行。

This batch modifies a version file and checks in TVFC the change.此批处理修改版本文件并在 TVFC 中检查更改。

In XAML build works like a charm.在 XAML 中构建就像一个魅力。 The same batch show me this log:同一批给我看这个日志:

2019-08-07T18:10:07.7390807Z Current version: 2.0.13.17
2019-08-07T18:10:07.7546806Z C:\agent1\_work\1\s\Version.INI
2019-08-07T18:10:07.7546806Z 1 File(s) copied
2019-08-07T18:10:08.4098764Z TF14067: The item \agent1\_work\1\s\Version.ini could not be found in the ws_1_85;Project Collection Build Service workspace, or you do not have permission to access it.
2019-08-07T18:10:08.7374743Z There are no pending changes matching the specified items.
2019-08-07T18:10:08.7530742Z No files checked in.

It seems there are no files changed.似乎没有更改任何文件。 I checked the Version.ini file has been modified successfully.我检查了 Version.ini 文件已成功修改。 Here the .bat:这里的.bat:

\\VersionUpdater\VersionUpdater.exe  /UPDATE VERSIONPATH="%~dp0Version.ini"  SOLUTIONFOLDER="%~dp0Develop"
xcopy "%~dp0Version.ini" "%~dp0actualversion\" /Y
call %~dp0tf.bat checkout "%~dp0Version.ini"
set /p Version=<"%~dp0Version.ini"
\\VersionUpdater\VersionUpdater.exe  /INCREMENT VERSIONPATH="%~dp0Version.ini"
call %~dp0tf.bat checkin "%~dp0Version.ini" /noprompt /comment:"Version upgrade %Version%"

To combat these issues I've built a set of tasks that perform the check-in for you.为了解决这些问题,我构建了一组为您执行签入的任务。

See:看:

What you're likely running into:您可能遇到的情况:

  • Workspace changes:工作区变化:

    • The XAML build uses Server workspace. XAML 构建使用服务器工作区。
    • The 1.x 2015 agent defaults to local workspaces (but can use Server workspaces). 1.x 2015 代理默认为本地工作区(但可以使用服务器工作区)。
    • The 2.x 2015+ agent enforces local workspaces. 2.x 2015+ 代理强制执行本地工作区。
  • tf vc checkout isn't supported on local workspaces本地工作区不支持tf vc checkout

  • TeamFoundation workspace cache directory moved TeamFoundation 工作区缓存目录已移动

    • Different agents use different versions of the Client Object Model.不同的代理使用不同版本的客户端对象模型。
    • Each major version of the Object Model stores the machine workspaces in version specific folder.对象模型的每个主要版本都将机器工作区存储在版本特定的文件夹中。
  • tf.exe / tf.bat may be using a different object model cache than the agent. tf.exe / tf.bat可能使用与代理不同的对象模型缓存。

    • tf relies on the client cache as well. tf 也依赖于客户端缓存。

Possible fixes:可能的修复:

  1. Remove the call to tf checkout删除对tf checkout的调用
  2. Match the version of tf to the client object model of the agent.tf的版本与代理的客户端对象模型相匹配。
  3. Call tf vc workspaces /collection:SERVERURI /computer:AGENTMACHINENAME to refresh the workspace cache from your batch script.调用tf vc workspaces /collection:SERVERURI /computer:AGENTMACHINENAME以从批处理脚本刷新工作区缓存。
  4. Upgrade to TFS 2018 to get all the better features of the 2.x agent.升级到 TFS 2018 以获得 2.x 代理的所有更好的功能。
  5. Use my TF VC tasks使用我的TF VC 任务

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 TFS2015 VNext构建输出文件夹 - TFS2015 VNext build output folders TFS2015-在vNext构建期间确定受影响的测试 - TFS2015 - Determine impacted tests during vNext build TFS2015 vNext构建:获取源代码的自定义步骤 - TFS2015 vNext build: Custom step to get sources 如何在tfs 2015“vNext”版本中配置门控签入? - How can a Gated Check-in be configured in tfs 2015 “vNext” builds? TFS 2015 vNext门控签到版本是“等待代理商被请求”? - TFS 2015 vNext Gated Check-in builds are “Waiting for an agent to be requested”? 如何获取TFS2015 Build(Build.vnext)和NuGet包还原以使用自定义包源 - How to get TFS2015 Build (Build.vnext) and NuGet package restore to use custom package sources TFS2015 vNext Build + PowerShell自定义—异常调用保存:TF215070:构建URI无效 - TFS2015 vNext Build + PowerShell Customization — Exception calling Save: TF215070: The build URI is not valid Build.Vnext TFS2015未在“项目构建顺序”中构建解决方案 - Build.Vnext TFS2015 is not building solution in “Project Build Order” 在TFS2015 update2 vNext构建配置中发送请求时发生错误 - An error occurred while sending the request in TFS2015 update2 vNext build configuration 签入TFVC后是否可以设置变更集的其他CreationDate-TFS 2015 - Can I set different CreationDate of Changeset after check-in into TFVC - TFS 2015
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM