Spring boot uses special configuration to set up trailing slashes, which is an overridden method of WebMvcConfigurer - configurePathMatch. More information can be found here .
From my point of view good solution is to use virtualenv there. Below is small snippet of code for a Jenkinsfile. sh """ pip install --user virtualenv && virtualenv venv && . \$(pwd)/venv/bin/activate && pip install -r src/test_requirements.txt && export PYTHONPATH="src" && cd src/tests && nosetests -v """