title: Why does Jenkins change my workspace path?
body: <p>i have installed Jenkins on Windows 10 and each time i try to execute a maven project or just try to execute <code>mvn clean test</code> (command line), Jenkins decides that my new workspace should be: <code>C:\Windows\system32\config\systemprofile\eclipse-workspace\</code> while my project is in <code>C:\Users\username\eclipse-workspace</code>.
  Jenkins starts in the directory <code>C:\Windows\system32\config\systemprofile\AppData\Local\Jenkins.jenkins\workspace\projectName</code> and even if i run a <code>cd</code> command i will have this problem:</p>
  <blockquote>
  <p>The driver executable must exist:
  C:\Windows\system32\config\systemprofile\eclipse-workspace\projectname\drivers\chromedriver\chromedriver.exe</p>
  </blockquote>
  <p>My chrome driver is not there obviously but it's in <code>C:\Users\userName\eclipse-workspace\projectName\drivers\chromedriver</code>.</p>
  <p>It looks like than Jenkins changes my <code>user.home</code>.
  I went to config file and set:</p>
  <pre><code>&lt;workspaceDir&gt;C:\Users\userName\eclipse-workspace&lt;/workspaceDir&gt;
  </code></pre>
  <p>but it's still looking for the driver in <code>C:\Windows\system32\config\systemprofile\eclipse-workspace\projectname\drivers\chromedriver\chromedriver.exe</code></p>
  <p>This part: <code>C:\Windows\system32\config\systemprofile\</code> is obtained using in Java <code>System.getProperty(&quot;user.home&quot;)</code>. Running it with Jenkins seems to modify it.</p>
  <p>Why is it looking for my driver there?
  Why can't it just stick to my workspace folder?
  How can i solve this?</p>
  <p>Thank you</p>