build on jenkins fails with error CS0103: The name `Analytics' does not exist in the current context

  1. Analytics service is enabled on the Services tab of Unity Editor.

  2. Builds locally are fine.

  3. I signed into same Unity account in Unity on my Jenkins system as my desktop just to be sure.

Does Unity log out of my account when built using batchMode? Does anyone have a project using Unity Analytics building on Jenkins or Unity Cloud Build? I saw a thread about UCB but no obvious answer.

thanks in advance.

Step 3 solved my issue on Unity 5.3.5p2