diff --git a/Jenkinsfile b/Jenkinsfile index 866e602..e2e5e69 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,12 +27,12 @@ pipeline { ssh -o StrictHostKeyChecking=no root@${VPS_HOST} /bin/bash << 'ENDSSH' cd /srv/fymious-tg-bot - # Create venv if needed - if [ ! -d ".venv" ]; then - python3 -m venv .venv - fi + # Remove corrupted venv and recreate + rm -rf .venv + python3 -m venv .venv # Install dependencies + .venv/bin/pip install --upgrade pip .venv/bin/pip install -r requirements.txt # Restart service