code-maven.com
code-maven.com copied to clipboard
notify ModuleNotFoundError while running python script on node
https://code-maven.com/jenkins-pipeline-running-external-programs
Description: run python script on node, it's ok . but run it with jenkins-pipeline , it will notify ModuleNotFoundError.
You probably either execute a different version of python or you don't have the virtual environment turned on when you run it from jenkins.