This commit is contained in:
Guillem Hernandez Sola
2026-05-08 08:43:28 +02:00
parent 4d08c4045d
commit 6d0a4a5133

View File

@@ -25,22 +25,24 @@ pipeline {
} }
} }
stage('Post Dijous') { stage('Post Divendres') {
steps { steps {
// Securely injects Jenkins credentials as environment variables // Securely injects Jenkins credentials as environment variables
// Note the added curly braces wrapping the sh block
withCredentials([ withCredentials([
string(credentialsId: 'BSKY_GROMENAWARE_HANDLE', variable: 'BSKY_GROMENAWARE_HANDLE'), string(credentialsId: 'BSKY_GROMENAWARE_HANDLE', variable: 'BSKY_GROMENAWARE_HANDLE'),
string(credentialsId: 'BSKY_GROMENAWARE_APP_PASSWORD', variable: 'BSKY_GROMENAWARE_APP_PASSWORD') string(credentialsId: 'BSKY_GROMENAWARE_APP_PASSWORD', variable: 'BSKY_GROMENAWARE_APP_PASSWORD')
]) ]) {
sh """ sh """
. venv/bin/activate . venv/bin/activate
python3 bsky_post.py "DIVENDRES!!!!!!" \\ python3 bsky_post.py "DIVENDRES!!!!!!" \\
--username "\$BSKY_HANDLE" \\ --username "\$BSKY_GROMENAWARE_HANDLE" \\
--password "\$BSKY_APP_PASSWORD" \\ --password "\$BSKY_GROMENAWARE_APP_PASSWORD" \\
--image media/divendres.mp4 \\ --video media/divendres.mp4 \\
--alt "DIVENDRES!!" \\ --alt "DIVENDRES!!" \\
--lang ca --lang ca
""" """
}
} }
} }
} }