To run my python tests I created a freestyle project in Jenkins and wrote a script like this:
. .env/bin/activate
pip install pytest
pytest --alluredir='FINAL/ws/allure-results' ./FINAL/autotests
To run my python tests I created a freestyle project in Jenkins and wrote a script like this:
. .env/bin/activate
pip install pytest
pytest --alluredir='FINAL/ws/allure-results' ./FINAL/autotests
You can try by adding
#!/bin/bash
in the first line of the script step and then try to execute.