From 18f9b4abf56856787f0b49e3849417ab1af65271 Mon Sep 17 00:00:00 2001 From: Mpho raf Date: Tue, 1 Mar 2022 15:38:24 +0200 Subject: [PATCH] trying to run the proper python --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index f54e1be..7c53c34 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,9 +28,13 @@ pipeline { docker { image "python:$PY_VERSION" args '-e DJANGO_SETTINGS_MODULE="locallibrary.settings"'} } + environment { + PY_ENV = "/tmp/pitestenv" + } steps { sh ''' - python3 -m venv /tmp/pitestenv; source /tmp/pitestenv/bin/activate + python -m venv ${PY_ENV}; source ${PY_ENV}/bin/activate + export PATH=${PY_ENV}/bin:${PATH} pip install -r requirements.txt python -m pytest catalog/tests/ python -m xmlrunner discover -p *_test.py