Hi,
I would like to create and use a python virtualenv in my jenkins job. However, the "windows batch command" appears to just stop when I try to load the virtualenv. I don't see the "HERE" line in the steps below.
EXECUTE WINDOWS BATCH COMMAND
whoami
type nul > my_params.params
python -m venv env
env\Scripts\activate.bat
echo "HERE"
And here is some of the output:
C:\Jenkins\workspace\my_job>whoami
corp\my_user
C:\Jenkins\workspace\my_job>type nul 1>my_params.params
C:\Jenkins\workspace\my_job>python -m venv env
C:\Jenkins\workspace\my_job>env\Scripts\activate.bat
[EnvInject] - Injecting environment variables from a build step.
[EnvInject] - Injecting as environment variables the properties file path 'my_params.params'
[EnvInject] - Variables injected successfully.
Email was triggered for: Success
Sending email for trigger: Success
Request made to compress build log
Sending email to: m...@work.com
Finished: SUCCESS
Logging in as "my_user" and performing the steps manually in the workspace performs as expected.
The workspace contains all of the expected files and the virtualenv works if activated manually.
Windows Server 2008. Jenkins 2.19.4. Python 3.6
Is there something I need to do when activating a virtualenv for jenkins?