title: Jenkins won't execute python subprocess
body: <p>I've seen a few suggestions to get around this issue but none of them work for me.</p>
  
  <p>I have Jenkins installed locally on my laptop running Windows10.  I've narrowed it down and it is indeed the line in my python script that's calling subprocess.run method.  The Python scripts executes up to that point so I'm know the script is getting called from the Jenkins job.</p>
  
  <p>It seems to be a permissions error as suggested in other posts.  However, I'm not sure exactly what else I can do.  I log into Windows as Admin so that's not the issue.</p>
  
  <p>The Jenkins job is running as the Jenkins Admin user so I'm not sure what else I can do?</p>
  
  <p>Console output:</p>
  
  <pre><code>17:39:21 Started by user admin
  17:39:21 Building in workspace C:\Program Files (x86)\Jenkins\workspace\loadrunner_test
  17:39:21 [loadrunner_test] $ cmd /c call C:\WINDOWS\TEMP\jenkins2453008242502676618.bat
  17:39:21 
  17:39:21 C:\Program Files (x86)\Jenkins\workspace\loadrunner_test&gt;cmd /C C:\Python365\python.exe C:\PythonProjects\cicd_loadrunner\cicd_loadrunner.py 
  17:44:42 Error:  &lt;class 'subprocess.TimeoutExpired'&gt;
  17:44:42 
  17:44:42 C:\Program Files (x86)\Jenkins\workspace\loadrunner_test&gt;exit -1 
  17:44:42 Build step 'Execute Windows batch command' marked build as failure
  17:44:42 Finished: FAILURE
  </code></pre>
  
  <p>When it tries to execute the subprocess.run method, it just hangs and then eventually times out.</p>
  
  <p>When I run the script manually using windows command prompt, it works as expected.</p>
  
  <p>Cheers.</p>