TFS 2017 get命令错误地返回“所有文件都是最新的”。 [英] TFS 2017 get command erroneously returns “All files are up to date.”

查看:87
本文介绍了TFS 2017 get命令错误地返回“所有文件都是最新的”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用  Team Foundation Server  2017设置本地TFS服务器安装。配置VNext构建代理时,由于"获取源"始终返回,所有构建都失败:
所有文件都是最新的。 无论构建定义有什么关于clean的设置,当前文件都不会(使用Team Foundation版本控制)下拉到构建代理。 如果clean设置为true,则删除所有本地构建
文件,并且不会删除任何构建文件(即,那里没有单个源代码文件)。 我已确认构建代理具有对服务器和本地构建环境的适当访问权限。 我还确认变更集
102具有与变更集关联的正确的当前文件。 我已经卸载/重新安装并配置了具有相同结果的构建代理。 使用VSOWorker: 版本:2.112.0

I am setting up an on-prem TFS Server installation using Team Foundation Server 2017. When configuring a VNext build agent, all builds are failing due to the fact that the 'Get Sources' always returns: All files are up to date.  No matter what settings the build definition has regarding clean, the current files are not pulled down (using Team Foundation Version Control) to the build agent.  If clean is set to true, all local build files are deleted and no build files are pulled down (i.e. there is not a single source code file there).  I have confirmed that the build agent has proper access rights to the server and the local build environment.  I have also confirmed that changeset 102 has the proper, current, files associated with the changeset.  I have uninstalled/reinstalled and configured the build agent with the same results.  Using VSOWorker:  Version: 2.112.0

在查看日志时,这是没有获得正确文件的行:

In looking at the logs, this is the line that is not getting the proper files:

2017-03-27T18 :16:29.6932038Z ## [command] tf vc get / version:102 / recursive / overwrite C:\BuildAgent\1\s / loginType:OAuth /login:.,********* ** / noprompt

2017-03-27T18:16:30.5994519Z所有文件都是最新的。

2017-03-27T18:16:29.6932038Z ##[command]tf vc get /version:102 /recursive /overwrite C:\BuildAgent\1\s /loginType:OAuth /login:.,*********** /noprompt
2017-03-27T18:16:30.5994519Z All files are up to date.

这是使用内置的"获取源代码" '构建步骤以检索文件。 这不是自定义步骤。

This is using the built-in 'Get Sources' build step to retrieve the files.  This is not a custom step.

关于导致这种情况的任何想法?

Any ideas on what would be causing this?

推荐答案

嗨滑板车,

感谢您在此处发帖。

当您设置'在构建定义的存储库选项卡中清除'到
false 。然后下次同步源,但不能再为相同的文件获取所有源文件。 (它从第二次排队构建定义的构建时获取新的或修改过的文件。)
   

It will get the sources when you queue a build first time when you set ‘Clean’ to false in Repository tab for your build definition. Then sync the sources next time but not get all sources files again for the identical files. (It just gets the new or modified files since the second time when queue a build for the build definition.)   

"获取源"始终返回:所有文件都是最新的表示它不是第一次为此定义排队构建,并且没有签入新的或修改过的文件,所有文件都已被删除。

The 'Get Sources' always returns: All files are up to date means that it’s not the first time to queue build for this definition and there are no new or modified files checked in, and all the files have been pulled down already.

因此,根据您的日志消息,请检查
C:\BuildAgent下是否有源文件\ 1 \ n
(在代理机器中查看)。

So, per your log message, please check if there are the sources files under C:\BuildAgent\1\s (check this in the agent machine).

如果目录下没有文件,请检查构建定义的源设置(< "存储库"选项卡下的"strong>服务器路径"。

If there are no files under the directory, please check the source settings for your build definition (Server Path under Repository tab).

您还可以创建新的构建定义,然后检查问题是否仍然存在。

You can also create a new build definition, then check if the problems persist.

最诚挚的问候。


这篇关于TFS 2017 get命令错误地返回“所有文件都是最新的”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆