mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-09 01:56:03 +00:00
[JENKINS-9577] Fix last modification timestamp after unzip
Reordered operations in order to set the file modification time after applying the permissions.
This commit is contained in:
1 parent
8e9e6ac657
commit
f967feaca9
1 file changed
+1
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user