diff --git a/Jenkinsfile b/Jenkinsfile index 7597cc8..5da19f1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,28 @@ pipeline { agent { docker { image 'python:3.7' } } environment { HOME = "$WORKSPACE" + PATH = "$PATH:/home/jenkins/.local/bin" } stages { stage('install dependencies') { steps { sh 'pip3 install --user pytest' } } stage('run tests') { - environment { - PATH = "/home/jenkins/.local/bin:$PATH" - } steps { + sh 'env' sh 'pytest code/test.py' } } } }