From 91bcf096f2e65e49a691fa1f572d4fa34d6af37c Mon Sep 17 00:00:00 2001 From: Guillem Hernandez Sola Date: Thu, 7 May 2026 09:26:00 +0200 Subject: [PATCH] Fix --- jenkins/dijous | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/jenkins/dijous b/jenkins/dijous index 2dc159e..3d195a0 100644 --- a/jenkins/dijous +++ b/jenkins/dijous @@ -19,14 +19,22 @@ pipeline { stages { stage('Install dependencies') { steps { - sh 'pip3 install --quiet atproto' + # Create a virtual environment named 'venv' + python3 -m venv venv + + # Activate the virtual environment and install dependencies + . venv/bin/activate && \ + pip install --upgrade pip && \ + pip install --quiet atproto } } - + stage('Post Dijous') { steps { sh """ - python3 bsky_post.py "Dijous!!!!" \\ + # Activate the virtual environment and run the script + . venv/bin/activate && \ + python3 bsky_post.py "FeliƧ dijous!!!!" \\ --username "\$BSKY_HANDLE" \\ --password "\$BSKY_APP_PASSWORD" \\ --image media/dijous.jpg \\