java.io.ioexception failed to mkdirs jenkins xcode || jenkins 无法创建新文件
=========================================================== FATAL: Failed to mkdirs: /Users/chenqing/Sqy/iOSProject/cyou/Svn/Cos/CosXCode_lxh/test-reports java.io.IOException: Failed to mkdirs: /Users/chenqing/Sqy/iOSProject/cyou/Svn/Cos/CosXCode_lxh/test-reports at hudson.FilePath.mkdirs(FilePath.java:1093)
在用jenkins 集成的时候遇到这个错误 。。
解决办法:修改文件的读写限制
输入命令查看# ls -l 发现无法写入
drwxr-xr-x 22 chenqing staff 748 Aug 21 18:05 Classes -rw-r--r-- 1 chenqing staff 1035851 Aug 21 18:05 Default-568h@2x.png ....... drwxr-xr-x 8 chenqing staff 272 Aug 22 14:11 Unity-iPhone.xcodeproj drwxrwxrwx 2 chenqing staff 68 Aug 22 14:35 dirname
输入命令#chmod -R 777./
再次查看时
drwxrwxrwx 22 chenqing staff 748 Aug 21 18:05 Classes -rwxrwxrwx 1 chenqing staff 1035851 Aug 21 18:05 Default-568h@2x.png
.....
drwxrwxrwx 8 chenqing staff 272 Aug 22 14:11 Unity-iPhone.xcodeproj drwxrwxrwx 2 chenqing staff 68 Aug 22 14:35 dirname
这时就正常了。。再次回到jenkins 编译 不会再出现
FATAL: Failed to mkdirs: