I recommend explicitly activating a python env before you run your script in your jenkinsfile to ensure you are in an environment which has nose installed.
Please check out virtualenv, tox, or conda for information on how to do so.
0
votes
Does it run successfully if you start it manually? If yes, then you might have problems with PYTHONPATH. You can use withEnv to set it.
withEnv(['PYTHONPATH=/your/pythonpath']) {
sh 'python ./selenium/xy_python/run_tests.py'
}
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more