This commit is contained in:
Guillem Hernandez Sola
2026-05-07 09:27:29 +02:00
parent 91bcf096f2
commit 0511f0a087

View File

@@ -19,21 +19,19 @@ pipeline {
stages {
stage('Install dependencies') {
steps {
# 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
sh """
python3 -m venv venv
. venv/bin/activate
pip install --upgrade pip --quiet
pip install --quiet atproto
"""
}
}
stage('Post Dijous') {
steps {
sh """
# Activate the virtual environment and run the script
. venv/bin/activate && \
. venv/bin/activate
python3 bsky_post.py "Feliç dijous!!!!" \\
--username "\$BSKY_HANDLE" \\
--password "\$BSKY_APP_PASSWORD" \\