Unity Support plugin "Unmet requirements: Exists=>unity\.path\.2020\.3\.17f1.* exists"
Been making a switch from Jenkins to TeamCity, still using the jenkins user with a weird home folder.
I've installed multiple Unity Installations to the default Unity Hub installation folder (in this case: /var/lib/jenkins/Unity/Hub/Editor/*)
I've set up the following environment variables hoping to prompt it to detect them:
UNITY_HOME=/var/lib/jenkins
UNITY_HINT_PATH=/var/lib/jenkins:/var/lib/jenkins/Unity/:/var/lib/jenkins/Unity/Hub/:/var/lib/jenkins/Unity/Hub/Editor/:/var/lib/jenkins/Unity/Hub/Editor/2020.3.20f1/:/var/lib/jenkins/Unity/Hub/Editor/2020.3.20f1/Editor/
The plugin seems to scan the directories in the log with DEBUG logging enabled:
[2021-10-11 00:24:02,445] INFO - Server.unity.UnityToolProvider - Locating Unity tools
[2021-10-11 00:24:02,462] DEBUG - erver.unity.LinuxUnityDetector - Looking for Unity installation in /var/lib/jenkins
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for Unity installation in /var/lib/jenkins/Unity
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for Unity installation in /var/lib/jenkins/Unity/Hub/Editor/2020.3.11f1
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for package manager in /var/lib/jenkins/Unity/Hub/Editor/2020.3.11f1
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for Unity installation in /var/lib/jenkins/Unity/Hub/Editor/2020.3.17f1
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for package manager in /var/lib/jenkins/Unity/Hub/Editor/2020.3.17f1
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for Unity installation in /var/lib/jenkins/Unity/Hub/Editor/2020.3.20f1
[2021-10-11 00:24:02,465] DEBUG - erver.unity.LinuxUnityDetector - Looking for package manager in /var/lib/jenkins/Unity/Hub/Editor/2020.3.20f1
[2021-10-11 00:24:02,468] DEBUG - Server.unity.UnityDetectorBase - Reading Unity Hub configuration file /var/lib/jenkins/.config/UnityHub/hubInfo.json
[2021-10-11 00:24:02,476] DEBUG - Server.unity.UnityDetectorBase - Listing directories under /opt/unityhub/Editor
[2021-10-11 00:24:02,481] DEBUG - erver.unity.LinuxUnityDetector - Looking for Unity installation in /opt/unityhub
Seems to just completely ignore the unity folders. Here's the agent's Agent Parameters, no unity.path's to be found on any of the tabs.

I've found the bit of code that's printing the debug here:
https://github.com/JetBrains/teamcity-unity-plugin/blob/master/plugin-unity-agent/src/main/kotlin/jetbrains/buildServer/unity/LinuxUnityDetector.kt#L39
Seems like it's searching for some kind of package manager? My working Unity installations have no such thing. Perhaps the plugin's search requirements are too tight?
Please sign in to leave a comment.