How to activate conda environment in jenkins build
问题 I need to run jenkins build using a specific conda environment on our jenkins server (running on Windows). I thought it would be as easy as running: activate myenv python test_env.py but this seems to cause the build to exit instead, before the script even starts. Here is the jenkins console log: activate myenv Activating environment "myenv"... Finished: SUCCESS If I remove the activate line, the python script executes fine. FYI, the script I am running: import os f = open('env.txt','w') for