We are running continuous Jenkins builds of a Git project hosted at Assembla. Jenkins is running on Tomcat 6 under its own user and generally works fine.
However every once in a while (say once in every 10 builds), the checkout operation at the beginning of the build job simply hangs. At other times the Git tag operation at the end of the build also hangs. I believe this did not ever happen in command-line operation (on the same host with …
我有Java代码执行以下操作:
File.createTempFile()
File.delete()
(我们真的只想生成一个临时文件名)com.google.commons.io.ByteStreams.copy()
使用OutputSupplier
给定相同文件名的新文件将"模板"ZIP文件复制到同一路径在特定系统上,第4步一致失败FsReadOnlyArchiveFileSystemException - "This is a read-only archive file system!"
(参见http://java.net/projects/truezip/lists/users/archive/2011-05/message/9)
调试TrueZIP代码,我注意到以下内容:
以下是您在调试器表达式列表中看到的内容:
fn => "C:/myworkdir/temp/myfile4088293380313057223tmp.zip"
java.nio.file.Files.isWritable(java.nio.file.Paths.get(fn)) => false
new java.io.File(fn).canWrite() => true
Run Code Online (Sandbox Code Playgroud)
使用JDK 1.7.04
有任何想法吗?