jenkinsci / unity3d-plugin

Jenkins Unity3d plugin
https://plugins.jenkins.io/unity3d-plugin/
MIT License
94 stars 55 forks source link

Android SDK root and JDK path being overwritten #9

Open Soviut opened 8 years ago

Soviut commented 8 years ago

From what I can tell, the plugin modifies the EditorPrefs plist file, or the EditorPrefs directly, which removes the Android SDK and JDK path on OSX. The plist file on OSX is located at ~/Library/Preferences/com.unity3d.UnityEditor.plist

I tried creating a build step that uses PListBuddy to write the two paths into the plist file on each build, but this seemed to get stomped by the Unity3D build plugin.

The workaround I used was to set the EditorPrefs directly in my BuildScript.cs

EditorPrefs.SetString("JdkPath",        "/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home");
EditorPrefs.SetString("AndroidSdkRoot", "/Users/Shared/Jenkins/Library/Android/sdk");
crystalbyte commented 4 years ago

Has this been resolved since then?

jjfmarket commented 4 years ago

I don't think this is related to the plugin, because I'm seeing the same behaviour running unity via a command line script in my jenkins install