Fix
This commit is contained in:
@@ -19,14 +19,22 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage('Install dependencies') {
|
stage('Install dependencies') {
|
||||||
steps {
|
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') {
|
stage('Post Dijous') {
|
||||||
steps {
|
steps {
|
||||||
sh """
|
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" \\
|
--username "\$BSKY_HANDLE" \\
|
||||||
--password "\$BSKY_APP_PASSWORD" \\
|
--password "\$BSKY_APP_PASSWORD" \\
|
||||||
--image media/dijous.jpg \\
|
--image media/dijous.jpg \\
|
||||||
|
|||||||
Reference in New Issue
Block a user