mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-13 03:52:05 +00:00
[FIXED JENKINS-17343]
Don't break Windows XP, fall back gracefully to no-op.
This commit is contained in:
1 parent
8aa912238b
commit
a016f3da07
3 files changed
+10
No files matched your search
@@ -63,6 +63,9 @@ Upcoming changes</a>
|
||||
<div id="rc" style="display:none;"><!--=BEGIN=-->
|
||||
<h3><a name=v1.510>What's new in 1.510</a> <!--=DATE=--></h3>
|
||||
<ul class=image>
|
||||
<li class=bug>
|
||||
<tt>UnsatisfiedLinkError</tt> on <tt>CreateSymbolicLinkw</tt> on Windows XP.
|
||||
(<a href="https://issues.jenkins-ci.org/browse/JENKINS-17343">issue 17343</a>)
|
||||
<li class=bug>
|
||||
Flyweight tasks should execute on the master if there's no static
|
||||
executors available.
|
||||
|
||||
@@ -1065,6 +1065,9 @@ public class Util {
|
||||
return;
|
||||
}
|
||||
throw e;
|
||||
} catch (UnsatisfiedLinkError e) {
|
||||
// not available on this Windows
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
String errmsg = "";
|
||||
|
||||
@@ -80,6 +80,10 @@ public class Kernel32Utils {
|
||||
* @param target
|
||||
* If relative, resolved against the location of the symlink.
|
||||
* If absolute, it's absolute.
|
||||
* @throws UnsatisfiedLinkError
|
||||
* If the function is not exported by kernel32.
|
||||
* See http://msdn.microsoft.com/en-us/library/windows/desktop/aa363866(v=vs.85).aspx
|
||||
* for compatibility info.
|
||||
*/
|
||||
public static void createSymbolicLink(File symlink, String target, boolean dirLink) throws IOException {
|
||||
if (!Kernel32.INSTANCE.CreateSymbolicLinkW(
|
||||
|
||||
Reference in new issue
Block a user