Problems Solved for Setting Up Jenkins

You must set the %JAVA_HOME% and Path environment variables for jenkins.

Otherwise you should get errors like:

    To do so follow this steps:

  • Create a %JAVA_HOME% var with path to the Java jdk/jre (without /bin)
  • Add %JAVA_HOME% to the Path var. Extend the string with \bin now.
  • Check the result by enter javac in the cmd. If something java like is printed out you are done.

Environment Variable Java
Environment Variable Path

You must run Jenkins explicitly as current user

The android emulator plugin wants to access you .android folder. But it looks for it in the wrong directory. To fix this you have to run Jenkins from the according user. Otherwise you should get errors like:

    To do so follow this steps:

  • Open the Server Window and search for “Jenkins”.
  • Open the properties of this service.
  • Enter in the cmd “echo %USERDOMAIN%\%USERNAME%” and copy the output into the Properties Window.
  • The String is maybe changed to .\Username
  • Restart the service. If you don’t receive an 1069 Error you are done.
  • Otherwise: The user account must have a password. If not: create a password for this user.

Services

Leave a Reply

Your e-mail address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.