简体   繁体   English

Ubuntu 管道中的 TFVC “撤消未更改”错误

[英]TFVC “Undo Unchanged” Error in Ubuntu pipeline

I'm trying to run an "undo unchanged" command in a Linux TFVC pipeline.我正在尝试在 Linux TFVC 管道中运行“撤消未更改”命令。

The commands are run from a bash script:这些命令从 bash 脚本运行:

tf workspaces -login:${credentials} -collection:${collectionURL}
tf checkout * -recursive -login:${credentials}
tf uu * -recursive -login:${credentials} -collection:${collectionURL}
tf checkin * -recursive -comment:${comment} -login:${credentials} -noprompt

The problem is that the third command fails:问题是第三个命令失败:

tf uu * -recursive -login:${credentials} -collection:${collectionURL}

With the error:出现错误:

An error occured: There is no working folder mapping for '/home/user/tfsAgent/_work/1/s/folder_name'

I understand that the problem is that I don't have a direct mapping to the directory 'folder_name': Instead, I have mappings to several of its subdirectories.我知道问题是我没有直接映射到目录'folder_name':相反,我映射到它的几个子目录。

There is no specific path in the source-control which I can map directly to the directory 'folder_name'.源代码控制中没有特定路径,我可以将 map 直接指向目录“folder_name”。
Is there no workaround for this?没有解决方法吗?

Any help would be greatly appreciated.任何帮助将不胜感激。

Seems you were trying to use tf uu command to undo checkout of unmodified files in a batch file.似乎您正在尝试使用tf uu命令撤消对批处理文件中未修改文件的签出。

This command need to be called in a workspace, the folder should have a mapping relationship.该命令需要在工作空间中调用,文件夹应该有映射关系。

An error occured: There is no working folder mapping for '/home/user/tfsAgent/_work/1/s/folder_name'发生错误:“/home/user/tfsAgent/_work/1/s/folder_name”没有工作文件夹映射

According to the error, you need to use tf workspace command to the target folder, cd inside it and run tf uu command.根据错误,您需要使用tf workspace命令到目标文件夹,在其中 cd 并运行 tf uu 命令。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM