mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-03 23:25:52 +00:00
[FIXED JENKINS-16089]
Remember the permalink target as symlink (or simple text file) so that looking that up doesn't cause the walk of the build history. I think this is more in line with our general preference of making $JENKINS_HOME useful (than trying to persist cache into a blackbox.) Having a general purpose in-memory cache could be useful, so I'll see if I can add that, too, in a way that allows someone to plug different backend.
This commit is contained in:
1 parent
1091476399
commit
88feabb429
6 files changed
+290
-91
No files matched your search
@@ -1144,6 +1144,12 @@ public class Util {
|
||||
* Resolves symlink, if the given file is a symlink. Otherwise return null.
|
||||
* <p>
|
||||
* If the resolution fails, report an error.
|
||||
*
|
||||
* @return
|
||||
* null if the given file is not a symlink.
|
||||
* If the symlink is absolute, the returned string is an absolute path.
|
||||
* If the symlink is relative, the returned string is that relative representation.
|
||||
* The relative path is meant to be resolved from the location of the symlink.
|
||||
*/
|
||||
public static String resolveSymlink(File link) throws InterruptedException, IOException {
|
||||
try { // Java 7
|
||||
|
||||
Reference in new issue
Block a user