我正在尝试使用Jenkins提取存储库,默认情况下,Jenkins创建一个冗长且不可读的工作空间名称。我因此得到了这个错误:
Caused by: com.microsoft.tfs.core.exceptions.TECoreException: The
specified path, file name, or both are too long. The fully qualified
file name must be less than 260 characters, and the directory name must
be less than 248 characters.
请问任何人请帮助我如何解决这个问题,在配置文件中添加任何参数会有帮助吗?
轶事思想,但有两种选择:
C:\code
而不是像C:\company\project\jenkins...
那样)找到解决方案,只需在jenkins.xml中添加此参数并重启jenkins即可解决问题。
-Djenkins.branch.workspaceLocatorImpl.PATH_MAX=0