mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-04 07:35:53 +00:00
[FIXED JENKINS-15316] Harmless but noisy exception running builds on some Windows systems in non-English locale.
Falling back to just checking for ‘FileSystemException’ since detail message about missing required privilege may be translated.
This commit is contained in:
1 parent
3e7fcc9904
commit
ced5c44323
2 files changed
+4
-2
No files matched your search
@@ -1071,7 +1071,7 @@ public class Util {
|
||||
if (x2 instanceof UnsupportedOperationException) {
|
||||
return true; // no symlinks on this platform
|
||||
}
|
||||
if (Functions.isWindows() && String.valueOf(x2).contains("A required privilege is not held by the client.")) {
|
||||
if (Functions.isWindows() && String.valueOf(x2).contains("java.nio.file.FileSystemException")) {
|
||||
if (warnedSymlinks.compareAndSet(false, true)) {
|
||||
LOGGER.warning("Symbolic links enabled on this platform but disabled for this user; run as administrator or use Local Security Policy > Security Settings > Local Policies > User Rights Assignment > Create symbolic links");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user