Fix
This commit is contained in:
@@ -19,21 +19,19 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Install dependencies') {
|
stage('Install dependencies') {
|
||||||
steps {
|
steps {
|
||||||
# Create a virtual environment named 'venv'
|
sh """
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
|
. venv/bin/activate
|
||||||
# Activate the virtual environment and install dependencies
|
pip install --upgrade pip --quiet
|
||||||
. venv/bin/activate && \
|
pip install --quiet atproto
|
||||||
pip install --upgrade pip && \
|
"""
|
||||||
pip install --quiet atproto
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Post Dijous') {
|
stage('Post Dijous') {
|
||||||
steps {
|
steps {
|
||||||
sh """
|
sh """
|
||||||
# Activate the virtual environment and run the script
|
. venv/bin/activate
|
||||||
. venv/bin/activate && \
|
|
||||||
python3 bsky_post.py "Feliç dijous!!!!" \\
|
python3 bsky_post.py "Feliç dijous!!!!" \\
|
||||||
--username "\$BSKY_HANDLE" \\
|
--username "\$BSKY_HANDLE" \\
|
||||||
--password "\$BSKY_APP_PASSWORD" \\
|
--password "\$BSKY_APP_PASSWORD" \\
|
||||||
|
|||||||
Reference in New Issue
Block a user