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
Post a Comment