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

minify - Minimizing css files -

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -