title: Maven builds in Jenkins failing, succeeding on command line
body: <p>We are customizing the site generation in maven and one of the things that it does is call Visio to have it translate some charts into png. We use a vbs script which calls Visio and that is called from a java class by calling <code>Process proc = Runtime.getRuntime().exec(command);</code> where command is <code>cmd /c "cd "C:\Path\To\Module\site\target\staging"&amp;&amp;exportVisioSvg.vbs "C:\Path\To\inFile.vsd" "C:\Path\To\outFile.png""</code> </p>
  
  <p>Now this code executes on my own machine just fine. Visio is called up and generates a file. When I run it on the server hosting our Jenkins instance it works as well. When I run the command by itself it works just fine. Finally when I goto the Jenkins\workspace and execute the maven build there it works just fine. </p>
  
  <p>However when I run the build in jenkins with exactly the same command (I copied and pasted it) it does not generate the Visio charts. Everything else runs fine and there is no stack trace outside of our own thrown error that goes off when the image is not where it is supposed to be. The exit code from the process is 0 as well and there is no output to either stdout or stderr (the windows equivalent) generated by the process and it has to complete or the exit code would be -1. Timeout isn't a problem as it has 50000 ms to run but always returns within a sec or less (you can see the error get thrown right after the call to the script). </p>
  
  <p>I switched Jenkins to run under the admin account where everything is installed (moving it from SYSTEM) so it should have access to the PATH.</p>
  
  <p>I have no idea what to do at this point. </p>