jenkinsci / jenkinsci/unity3d-plugin

Android SDK root and JDK path being overwritten

Open
#9 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
102
Forks
57
PR merge metrics
No merged PRs in 30d

Description

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

``` C#
EditorPrefs.SetString("JdkPath", "/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home");
EditorPrefs.SetString("AndroidSdkRoot", "/Users/Shared/Jenkins/Library/Android/sdk");
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.