[英]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:工作区变化:
tf vc checkout
isn't supported on local workspaces本地工作区不支持
tf vc checkout
TeamFoundation workspace cache directory moved TeamFoundation 工作区缓存目录已移动
tf.exe
/ tf.bat
may be using a different object model cache than the agent. tf.exe
/ tf.bat
可能使用与代理不同的对象模型缓存。
Possible fixes:可能的修复:
tf checkout
tf checkout
的调用tf
to the client object model of the agent.tf
的版本与代理的客户端对象模型相匹配。tf vc workspaces /collection:SERVERURI /computer:AGENTMACHINENAME
to refresh the workspace cache from your batch script.tf vc workspaces /collection:SERVERURI /computer:AGENTMACHINENAME
以从批处理脚本刷新工作区缓存。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.