提交 f967feac 编写于 作者: C Ciprian Ciubotariu

[JENKINS-9577] Fix last modification timestamp after unzip

Reordered operations in order to set the file modification time
after applying the permissions.
上级 8e9e6ac6
......@@ -499,7 +499,6 @@ public final class FilePath implements Serializable {
p.mkdirs();
}
IOUtils.copy(zip.getInputStream(e), f);
f.setLastModified(e.getTime());
try {
FilePath target = new FilePath(f);
int mode = e.getUnixMode();
......@@ -508,6 +507,7 @@ public final class FilePath implements Serializable {
} catch (InterruptedException ex) {
LOGGER.log(Level.WARNING, "unable to set permissions", ex);
}
f.setLastModified(e.getTime());
}
}
} finally {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册