I just found this comment on the Wiki https://wiki.jenkins-ci.org/display/JENKINS/Unity3dBuilder+Plugin?focusedCommentId=73532468#comment-73532468
I've configured Global Configuration with location of Unity (custom path under "D:\Unity")
I've added a builstep to invoke Unity and passed command line arguments, including logfile and projectpath.
I get the following:15:09:33 FATAL: null
15:09:33 java.lang.NullPointerException
15:09:33 at java.io.File.<init>(Unknown Source)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dInstallation.getEditorLogFile(Unity3dInstallation.java:121)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dInstallation.access$100(Unity3dInstallation.java:35)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dInstallation$3.call(Unity3dInstallation.java:112)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dInstallation$3.call(Unity3dInstallation.java:110)
15:09:33 at hudson.remoting.LocalChannel.call(LocalChannel.java:45)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dInstallation.getEditorLogPath(Unity3dInstallation.java:110)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dBuilder._perform(Unity3dBuilder.java:104)
15:09:33 at org.jenkinsci.plugins.unity3d.Unity3dBuilder.perform(Unity3dBuilder.java:79)
15:09:33 at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
15:09:33 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
15:09:33 at hudson.model.Build$BuildExecution.build(Build.java:199)
15:09:33 at hudson.model.Build$BuildExecution.doRun(Build.java:160)
15:09:33 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:585)
15:09:33 at hudson.model.Run.execute(Run.java:1684)
15:09:33 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
15:09:33 at hudson.model.ResourceController.execute(ResourceController.java:88)
15:09:33 at hudson.model.Executor.run(Executor.java:231)
The build works fine with same argument from the command line
After googling a bit, Windows XP doesn't have a LOCALAPPDATA. That was strange as Unity3d supports Windows XP.
So now the issue might be that I misread the http://docs.unity3d.com/Manual/LogFiles.html documentation. It is a bit confusing I think, as it seems that LOCALAPPDATA environment variable may not match the CIDL_LOCAL_APPDATA contents.
Yet we are assuming that LOCALAPPDATA is going to contain the proper PATH while we should really go for CSIDL_LOCAL_APPDATA.
A way to retrieve that value would be to use jna and
https://github.com/twall/jna/blob/master/contrib/platform/src/com/sun/jna/platform/win32/ShlObj.java#L54
See also http://stackoverflow.com/questions/585534/what-is-the-best-way-to-find-the-users-home-directory-in-java
Still in most cases, -logFile would be preferred, except for the issues (#JENKINS-28567) it might cause.
I just found this comment on the Wiki https://wiki.jenkins-ci.org/display/JENKINS/Unity3dBuilder+Plugin?focusedCommentId=73532468#comment-73532468
After googling a bit, Windows XP doesn't have a LOCALAPPDATA. That was strange as Unity3d supports Windows XP.
So now the issue might be that I misread the http://docs.unity3d.com/Manual/LogFiles.html documentation. It is a bit confusing I think, as it seems that LOCALAPPDATA environment variable may not match the CIDL_LOCAL_APPDATA contents.
Yet we are assuming that LOCALAPPDATA is going to contain the proper PATH while we should really go for CSIDL_LOCAL_APPDATA.
A way to retrieve that value would be to use jna and
https://github.com/twall/jna/blob/master/contrib/platform/src/com/sun/jna/platform/win32/ShlObj.java#L54
See also http://stackoverflow.com/questions/585534/what-is-the-best-way-to-find-the-users-home-directory-in-java
Still in most cases, -logFile would be preferred, except for the issues (#JENKINS-28567) it might cause.