Calling a Python Script from Jenkins Pipeline DSL causing import error -


code: sh 'python ./selenium/xy_python/run_tests.py'

error: traceback (most recent call last): file "./selenium/xy_python/run_tests.py", line 6, in import nose importerror: no module named nose

does run if start manually? if yes, might have problems pythonpath. can use withenv set it.

withenv(['pythonpath=/your/pythonpath') {     sh  'python ./selenium/xy_python/run_tests.py' } 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -