Add virtualenv fallback for agents without python3-venv
This commit is contained in:
5
Jenkinsfile
vendored
5
Jenkinsfile
vendored
@@ -32,7 +32,10 @@ pipeline {
|
||||
stage('Build') {
|
||||
steps {
|
||||
sh '''
|
||||
python3 -m venv .venv
|
||||
python3 -m venv .venv || {
|
||||
python3 -m pip install --user virtualenv
|
||||
python3 -m virtualenv .venv
|
||||
}
|
||||
. .venv/bin/activate
|
||||
pip install coverage
|
||||
pip install --upgrade pip "setuptools==69.5.1" wheel
|
||||
|
||||
Reference in New Issue
Block a user