Windows allows symbolic links as an optional behavior that must be enabled
with a registry change. Does the test pass if you enable symbolic links in
the windows registry?

On Sat, Apr 14, 2018, 3:36 AM Jonathan Bergh <bergh.jonat...@gmail.com>
wrote:

> hi all,
>
> i have just cloned and tried to test build all the Jenkins modules,
> including core, and i am getting a test failure for AtomicFileWriter
> complaining about permissions to generate a symlink.
>
> I am getting this on Win10 so am a little confused?
> 1) Should this test even be running (do we have symlinks on Windows? I am
> not a everyday Windows user)
> 2) Where is it trying to link to? various test files in '/target/'?
> 3) How can i solve? Since '/target' is compile time generated, i wonder
> why there are any permission issues?
>
> many thanks and regards
> jonathan
>
>
>
>
>
>
>
>
>
> *Tests run: 8, Failures: 0, Errors: 1, Skipped: 1, Time elapsed: 0.064 s
> <<< FAILURE! - in
> hudson.util.AtomicFileWriterTestsymlinkToDirectory(hudson.util.AtomicFileWriterTest)
> Time elapsed: 0.009 s  <<< ERROR!java.nio.file.FileSystemException:
> C:\Users\User1\Documents\NetBeansProjects\jenkins\core\target\junit4546323911809935589\junit2633652506541301542\ze_symlink:
> A required privilege is not held by the client.    at
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
> at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
> at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
> at
> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)*
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to jenkinsci-dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/4580b705-bfa3-4e4e-9672-b21424ec0dbc%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/4580b705-bfa3-4e4e-9672-b21424ec0dbc%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CAO49JtGhiXksxgZkrLkPi5zxj0aC6coV5tCTG3qCE-wAiM3jJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to