From 2c3d5e0e1f57cd8967447d7a9b2219e9f0bff7ae Mon Sep 17 00:00:00 2001 From: Mandel Olaiya Date: Sun, 15 Mar 2026 02:04:32 +0100 Subject: [PATCH] Add virtualenv fallback for agents without python3-venv --- Jenkinsfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a20bcf4..6bf71b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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