I am able to run my pytest
tests in my server /usr/local/bin/pytest --junitxml /proj/Results/result.xml /proj/unittests/
.
But when run with Jenkins build option "Execute Shell". I am getting below error:
Traceback (most recent call last):
File "/usr/local/bin/pytest", line 6, in <module>
import pytest
ImportError: No module named pytest Build step 'Execute shell'
marked build as failure Finished