From 4c1e417a77fbbc8ff53aaf772509dcb9e80ed054 Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Thu, 7 Jan 2021 15:03:20 +0100 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2514921..5916f07 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,8 +3,9 @@ pipeline { stages { stage('pytest') { steps { - sh '''python3 -m venv /var/build/jenkins - source /var/build/jenkins/bin/activate + sh '''mkdir -p /tmp/jenkins-venv + python3 -m venv /tmp/jenkins-venv + source /tmp/jenkins-venv/bin/activate pip install -U pytest pip install -r requirements.txt pytest @@ -13,4 +14,4 @@ pipeline { } } -} \ No newline at end of file +}