我们有一个通过TFS 2015运行的maven构建,它有JUnit测试我们想要发布到TFS。
当我检查2016-09-29T10:11:57.1224537Z [INFO] BUILD SUCCESS
2016-09-29T10:11:57.1224537Z [INFO] ------------------------------------------------------------------------
2016-09-29T10:11:57.1224537Z [INFO] Total time: 4:57.219s
2016-09-29T10:11:57.1224537Z [INFO] Finished at: Thu Sep 29 11:11:56 BST 2016
2016-09-29T10:11:57.3876605Z [INFO] Final Memory: 87M/287M
2016-09-29T10:11:57.3876605Z [INFO] ------------------------------------------------------------------------
2016-09-29T10:11:58.6980912Z ##[error]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.
2016-09-29T10:11:58.6980912Z No JUnit test results files were found matching pattern 'C:\TfsAgents\Agent1\_work\20\s', so publishing JUnit test results is being skipped.
选项时,构建失败并出现以下错误:
extension UIButton {
func callBtn(target:UIButton)
{
let url = NSURL(string: "tel://1234567890")!
UIApplication.sharedApplication().openURL(url)
}
}
当我取消选中该框时,构建工作正常(但显然我们没有看到任何测试结果)。
有没有办法解决这类问题,而不会躲避测试文件的名称或粉碎文件夹的结构?
在企业级,我们的文件夹结构和我们的一些类名一样冗长。因此,重组这些是一项重大任务。
答案 0 :(得分:0)
可能与TFS Build error - "The specified path, file name, or both are too long..."
重复更多参考方式:Best way to resolve file path too long exception
最好又安全的方法仍然是保存路径空间。