Skip to content

Commit

Permalink
update python version in jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
ltalirz committed Sep 13, 2021
1 parent eb00b72 commit 88b9454
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ pipeline {
// this folder is mounted from a volume so will have wrong permissions
sh 'sudo chown root:root /home/jenkins/.cache'
// prepare environment (install python dependencies etc)
sh 'pip install -r requirements/requirements-py-3.7.txt --cache-dir /home/jenkins/.cache/pip'
sh 'pip install -r requirements/requirements-py-3.8.txt --cache-dir /home/jenkins/.cache/pip'
sh 'pip install --no-deps .'
// for some reason if we don't change permissions here then python can't import the modules
sh 'sudo chmod -R a+rwX /opt/conda/lib/python3.7/site-packages/'
sh 'sudo chmod -R a+rwX /opt/conda/lib/python3.8/site-packages/'
}
}
stage('Test') {
Expand Down

0 comments on commit 88b9454

Please sign in to comment.